]> git.baikalelectronics.ru Git - kernel.git/commit
s390/kdump: Fix memleak in nt_vmcoreinfo
authorPhilipp Rudo <prudo@linux.ibm.com>
Mon, 13 Aug 2018 09:16:57 +0000 (11:16 +0200)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 16 Aug 2018 12:49:14 +0000 (14:49 +0200)
commitf970d1f7705418ef5656a114f0784197765007a4
tree6a2e3f137a264539e74aac4e310a8d6ac2a3c986
parent4607d72ff5dc551370175e2c2392ada9bebd7f48
s390/kdump: Fix memleak in nt_vmcoreinfo

The vmcoreinfo of a crashed system is potentially fragmented. Thus the
crash kernel has an intermediate step where the vmcoreinfo is copied into a
temporary, continuous buffer in the crash kernel memory. This temporary
buffer is never freed. Free it now to prevent the memleak.

While at it replace all occurrences of "VMCOREINFO" by its corresponding
macro to prevent potential renaming issues.

Signed-off-by: Philipp Rudo <prudo@linux.ibm.com>
Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
arch/s390/kernel/crash_dump.c