]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/fadump: Unregister fadump on kexec down path.
authorMahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Fri, 27 Apr 2018 06:23:18 +0000 (11:53 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 3 May 2018 13:19:30 +0000 (23:19 +1000)
commitcc379800a0c6258363a6a0c1ca6e5d6c08a19b28
treeb5c303df658e6c8139133c666183fa2cd1d7ccec
parent5f3c20fd4ffc70d761121a4ec283e2f028fa9d77
powerpc/fadump: Unregister fadump on kexec down path.

Unregister fadump on kexec down path otherwise the fadump registration
in new kexec-ed kernel complains that fadump is already registered.
This makes new kernel to continue using fadump registered by previous
kernel which may lead to invalid vmcore generation. Hence this patch
fixes this issue by un-registering fadump in fadump_cleanup() which is
called during kexec path so that new kernel can register fadump with
new valid values.

Fixes: 141730a7a2f0 ("fadump: Invalidate registration and release reserved memory for general use.")
Cc: stable@vger.kernel.org # v3.4+
Signed-off-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/fadump.c