b9c0cadcb3
- kexec-tools-vmcoreinfo-in-xen.patch: Revert "kexec-tools: Read always one vmcoreinfo file" (bsc#1085626, bsc#951740). - kexec-tools-fix-kexec-p-segfault.patch: Fix a segmentation fault when trying to run "kexec -p" (bsc#1080916). OBS-URL: https://build.opensuse.org/request/show/593774 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kexec-tools?expand=0&rev=97
26 lines
778 B
Diff
26 lines
778 B
Diff
From: Petr Tesarik <petr@tesarici.cz>
|
|
Date: Thu, 5 Apr 2018 13:07:49 +0200
|
|
Subject: Fix a segmentation fault when trying to run "kexec -p".
|
|
References: bsc#1080916
|
|
Upstream: not yet, to be posted after more testing
|
|
|
|
Do not fall through to "--mem-min" when "-p" option is parsed. The
|
|
break statement was apparently removed by mistake...
|
|
|
|
Fixes: cb434cbe6f401037e448276bb12056d1fdc3dbfc
|
|
Signed-off-by: Petr Tesarik <petr@tesarici.cz>
|
|
---
|
|
kexec/kexec.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
--- a/kexec/kexec.c
|
|
+++ b/kexec/kexec.c
|
|
@@ -1352,6 +1352,7 @@ int main(int argc, char *argv[])
|
|
do_sync = 0;
|
|
kexec_file_flags |= KEXEC_FILE_ON_CRASH;
|
|
kexec_flags = KEXEC_ON_CRASH;
|
|
+ break;
|
|
case OPT_MEM_MIN:
|
|
mem_min = strtoul(optarg, &endptr, 0);
|
|
if (*endptr) {
|