Fix a segmentation fault when trying to run "kexec -p"
Subsystems (2)
PATCH 1/1 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...
--- kexec/kexec.c | 1 + 1 file changed, 1 insertion(+)
kexec/kexec.c +1 -0
@@ -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) {
Signature · 6 lines
2.13.6 _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec
Quoted 15 lines · Petr Tesarik
Do not fall through to "--mem-min" when "-p" option is parsed. The break statement was apparently removed by mistake...
Fixes cb434cbe6f401037e448276bb12056d1fdc3dbfcSigned-off-by Petr Tesarik <[email protected]>--- kexec/kexec.c | 1 + 1 file changed, 1 insertion(+)kexec/kexec.c +0
-0
kexec/kexec.c int main(int argc, char *argv[]) · line 1355
Quoted 7 lines
kexec/kexec.c +1
-0@@ -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) {
'kexec -p' is currently broken (segfaults) upstream. I tested this fix on my arm64 board, so:
Regards,
Bhupesh
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Simon Horman
AppliedQuoted 27 lines · Bhupesh Sharma
Quoted 15 lines · Petr Tesarik
Do not fall through to "--mem-min" when "-p" option is parsed. The break statement was apparently removed by mistake...
Fixes cb434cbe6f401037e448276bb12056d1fdc3dbfcSigned-off-by Petr Tesarik <[email protected]>--- kexec/kexec.c | 1 + 1 file changed, 1 insertion(+)kexec/kexec.c +0
-0kexec/kexec.c int main(int argc, char *argv[]) · line 1355
Quoted 7 lines
kexec/kexec.c +1
-0@@ -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) {'kexec -p' is currently broken (segfaults) upstream. I tested this fix on my arm64 board, so:
Quoted 1 line
Tested-by Bhupesh Sharma <[email protected]>
Thanks, applied with the fixes tag updated to:
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec