]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 13 Mar 2020 04:31:00 +0000 (00:31 -0400)
commit19a0cedde7c79f46c4d73eb245d6b0d7b9deaa98
tree1bc44450c9c148844d68be3abbbd2c6bbf7deca4
parent0dab98bfb742d165e3b47edffc36e2a9f46c51a8
powerpc/pseries: Advance pfn if section is not present in lmb_is_removable()

BugLink: https://bugs.launchpad.net/bugs/1866678
commit fbee6ba2dca30d302efe6bddb3a886f5e964a257 upstream.

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: 51925fb3c5c9 ("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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/powerpc/platforms/pseries/hotplug-memory.c