]> git.baikalelectronics.ru Git - kernel.git/commit
RISC-V: Fix usage of memblock_enforce_memory_limit
authorAtish Patra <atish.patra@wdc.com>
Sat, 19 Dec 2020 00:13:56 +0000 (16:13 -0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Tue, 22 Dec 2020 05:02:14 +0000 (21:02 -0800)
commit9b186176a010f2883dfe4c47b7f5da28a12e2a7d
treedf0bafd5de234744423ec2bacbfca4f459216c49
parent4b8098acd5d38a9455652d19abdab85653d9d61e
RISC-V: Fix usage of memblock_enforce_memory_limit

memblock_enforce_memory_limit accepts the maximum memory size not the
maximum address that can be handled by kernel. Fix the function invocation
accordingly.

Fixes: b8c6de4bdebc ("RISC-V: Remove any memblock representing unusable memory area")
Cc: stable@vger.kernel.org
Reported-by: Bin Meng <bin.meng@windriver.com>
Tested-by: Bin Meng <bin.meng@windriver.com>
Acked-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/mm/init.c