]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries: Advance pfn if section is not present in lmb_is_removable()
authorPingfan Liu <kernelfans@gmail.com>
Fri, 10 Jan 2020 04:54:02 +0000 (12:54 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 14 Jan 2020 01:41:56 +0000 (11:41 +1000)
commitae6ba23af803d838fc3127a3f667b13b25c12031
tree4b29955501b913b177f5c7bc4ff3aeb9b7713b22
parentb0ed6ba35b7cc20848e81a5b10958932e9d259f0
powerpc/pseries: Advance pfn if section is not present in lmb_is_removable()

In lmb_is_removable(), if a section is not present, it should continue
to test the rest of the sections in the block. But the current code
fails to do so.

Fixes: 8361d5441027 ("powerpc/pseries: Implement memory hotplug remove in the kernel")
Cc: stable@vger.kernel.org # v4.1+
Signed-off-by: Pingfan Liu <kernelfans@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1578632042-12415-1-git-send-email-kernelfans@gmail.com
arch/powerpc/platforms/pseries/hotplug-memory.c