]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: Fix comment regarding kernel mapping overlapping with IS_ERR_VALUE
authorAlexandre Ghiti <alex@ghiti.fr>
Mon, 26 Jul 2021 05:42:54 +0000 (07:42 +0200)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Thu, 12 Aug 2021 14:16:58 +0000 (07:16 -0700)
commit8c4c3b709dab6884e871259f938e876dd6d9dff1
tree7963d4954e0e4e725080ec92216aeb45684b0f59
parentf0b91649faf42e4d3d07fef7b4271bedd5982c3d
riscv: Fix comment regarding kernel mapping overlapping with IS_ERR_VALUE

The current comment states that we check if the 64-bit kernel mapping
overlaps with the last 4K of the address space that is reserved to
error values in create_kernel_page_table, which is not the case since it
is done in setup_vm. But anyway, remove the reference to any function
and simply note that in 64-bit kernel, the check should be done as soon
as the kernel mapping base address is known.

Fixes: f57cd5ec86b6 ("riscv: Make sure the kernel mapping does not overlap with IS_ERR_VALUE")
Signed-off-by: Alexandre Ghiti <alex@ghiti.fr>
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/mm/init.c