]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/fadump: Account for memory_limit while reserving memory
authorHari Bathini <hbathini@linux.ibm.com>
Wed, 27 May 2020 09:44:35 +0000 (15:14 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 2 Jun 2020 10:59:05 +0000 (20:59 +1000)
commit470c3ab2adca56b90325a3996821156a2c00393a
tree45bc59c9c8d83180570b445038585a2416ef4313
parentb645e8448cac440455991f7de89fb837fdacf073
powerpc/fadump: Account for memory_limit while reserving memory

If the memory chunk found for reserving memory overshoots the memory
limit imposed, do not proceed with reserving memory. Default behavior
was this until commit c2152bec8f06 ("powerpc/fadump: consider reserved
ranges while reserving memory") changed it unwittingly.

Fixes: c2152bec8f06 ("powerpc/fadump: consider reserved ranges while reserving memory")
Cc: stable@vger.kernel.org
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Hari Bathini <hbathini@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/159057266320.22331.6571453892066907320.stgit@hbathini.in.ibm.com
arch/powerpc/kernel/fadump.c