]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/fadump: Throw proper error message on fadump registration failure
authorMahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Mon, 20 Aug 2018 08:17:24 +0000 (13:47 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 21 Dec 2018 00:32:49 +0000 (11:32 +1100)
commit9ec4c32cb7c429eea87b8c81d2ec19597fe7d96e
tree66d06de849ab85ae51a9635426f65ce0836d9a18
parent1033151e9b41ba976c422b0e17e21e8efbeda5c6
powerpc/fadump: Throw proper error message on fadump registration failure

fadump fails to register when there are holes in reserved memory area.
This can happen if user has hot-removed a memory that falls in the
fadump reserved memory area. Throw a meaningful error message to the
user in such case.

Signed-off-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
[mpe: is_reserved_memory_area_contiguous() returns bool, unsplit string]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/fadump.c