]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: remove linear mapping if __add_pages() fails in arch_add_memory()
authorDavid Hildenbrand <david@redhat.com>
Wed, 11 Nov 2020 14:53:21 +0000 (15:53 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 19 Nov 2020 05:56:59 +0000 (16:56 +1100)
commitfe802ba041c6bc657906f9725fef3bc5f118b8c7
tree3e6bfeb288583e18bf893a010fe26b1df5d3a153
parent10baa03365841c4941e81a1a01d5f0ce14644c08
powerpc/mm: remove linear mapping if __add_pages() fails in arch_add_memory()

Let's revert what we did in case something goes wrong and we return an
error - as already done on arm64 and s390x.

Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Oscar Salvador <osalvador@suse.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201111145322.15793-8-david@redhat.com
arch/powerpc/mm/mem.c