diff options
author | Petr Tesarik <ptesarik@suse.com> | 2020-04-03 13:19:16 +0200 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2020-04-07 14:00:57 +0200 |
commit | 5dc72ded6050a5bb161e3b832867e660c9ca009e (patch) | |
tree | 59b53fd2715fa930c44c53576c2fe758fa69bc40 | |
parent | 65441fbf8766046a0499edff8a893dc8143f6abd (diff) |
kexec-tools: s390: Reset kernel command line on syscall fallback
The command line is duplicated on s390 if kexec_file_load(2) is not
implemented. That's because the corresponding variable is not reset
to an empty string before re-parsing the kexec command line.
Fixes: 9cf721279f6c ("Reset getopt before falling back to legacy syscall")
Signed-off-by: Petr Tesarik <ptesarik@suse.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r-- | kexec/arch/s390/kexec-image.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kexec/arch/s390/kexec-image.c b/kexec/arch/s390/kexec-image.c index 8b39566..3c24fdf 100644 --- a/kexec/arch/s390/kexec-image.c +++ b/kexec/arch/s390/kexec-image.c @@ -112,6 +112,7 @@ image_s390_load(int argc, char **argv, const char *kernel_buf, }; static const char short_options[] = KEXEC_OPT_STR ""; + command_line[0] = 0; ramdisk = NULL; ramdisk_len = 0; ramdisk_origin = 0; |