]> 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)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Wed, 4 Mar 2020 23:11:03 +0000 (15:11 -0800)
commit3005aa3ba7182e397bbdf75b98a338f0e9693409
tree59183deec4b7f02bba486729c23596f4128dc29d
parentd75693ec3b8d3b370742ad4b94294be1e0ce3429
riscv: Fix range looking for kernel image memblock

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>
arch/riscv/mm/init.c