diff options
author | Petr Tesarik <ptesarik@suse.cz> | 2018-04-05 13:39:26 +0200 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2018-04-10 11:14:19 +0200 |
commit | a0c27338252d24dc052ca456235b99a7fb7fee45 (patch) | |
tree | ecb33ee389bea8f66496580ce2795756238ca648 | |
parent | 5c08af7a068d6d3abadbd8d8c41f78744daf258c (diff) | |
download | kexec-tools-a0c27338252d24dc052ca456235b99a7fb7fee45.tar.gz |
Fix a segmentation fault when trying to run "kexec -p"
Do not fall through to "--mem-min" when "-p" option is parsed. The
break statement was apparently removed by mistake...
Fixes: cb434cbe6f40 ("kexec: Do not special-case the -s option")
Signed-off-by: Petr Tesarik <ptesarik@suse.com>
Tested-by: Bhupesh Sharma <bhsharma@redhat.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r-- | kexec/kexec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kexec/kexec.c b/kexec/kexec.c index 612c1c2a..313d9fe3 100644 --- a/kexec/kexec.c +++ b/kexec/kexec.c @@ -1349,6 +1349,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) { |