]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: Fix range looking for kernel image memblock
authorAlexandre Ghiti <alex@ghiti.fr>
Mon, 17 Feb 2020 05:28:47 +0000 (00:28 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Mar 2020 07:25:48 +0000 (08:25 +0100)
commitabeb1c51a53fff8f023785a624b99c290769ab54
tree7cba03f7d2f72ba805a6bf135e2bf00cb34a907d
parent8a2afb577e6f19fa335060868233f80b302f6356
riscv: Fix range looking for kernel image memblock

[ Upstream commit 3005aa3ba7182e397bbdf75b98a338f0e9693409 ]

When looking for the memblock where the kernel lives, we should check
that the memory range associated to the memblock entirely comprises the
kernel image and not only intersects with it.

Signed-off-by: Alexandre Ghiti <alex@ghiti.fr>
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/riscv/mm/init.c