]> 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)
commit722cde76d68e8cc4f3de42e71c82fd40dea4f7b9
treeb5c303df658e6c8139133c666183fa2cd1d7ccec
parent8597538712ebd90bc83dfb0b3b40398a0c53ad5b
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: b500afff11f6 ("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