powerpc/vmemmap: Fix memory leak with vmemmap list allocation failures.
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Fri, 31 Jul 2020 11:34:59 +0000 (17:04 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 24 Aug 2020 15:31:32 +0000 (01:31 +1000)
commitccaea15296f9773abd43aaa17ee4b88848e4a505
tree1b35eb008d5d6fd28f7d5280ad26ae1308b34736
parent18102e4bcc47f5b5ac70e2e4461d022c1ee6df24
powerpc/vmemmap: Fix memory leak with vmemmap list allocation failures.

If we fail to allocate vmemmap list, we don't keep track of allocated
vmemmap block buf. Hence on section deactivate we skip vmemmap block
buf free. This results in memory leak.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200731113500.248306-1-aneesh.kumar@linux.ibm.com
arch/powerpc/mm/init_64.c