[PATCH] kdump: print a message in case crashkernel size parsing resulted in zero bytes
Dave Young
dyoung at redhat.com
Sun Nov 12 21:43:11 PST 2017
In parse_crashkernel_mem, it silently return in case we get zero
bytes in the parsing function. It is useful for debugging for
adding a warning message especially sometimes kernel can not boot
up correctly.
Signed-off-by: Dave Young <dyoung at redhat.com>
---
kernel/crash_core.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- linux-x86.orig/kernel/crash_core.c
+++ linux-x86/kernel/crash_core.c
@@ -108,7 +108,8 @@ static int __init parse_crashkernel_mem(
return -EINVAL;
}
}
- }
+ } else
+ pr_warn("crashkernel size resulted in zero bytes\n");
return 0;
}
More information about the kexec
mailing list