]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite5b322c969a4e67284fe846df70b1151c4c4245b
tree1b35eb008d5d6fd28f7d5280ad26ae1308b34736
parentda39e9643f7c5c7a9c83f9bc9f2323b2e4c32dd2
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