summaryrefslogtreecommitdiff
path: root/kexec/arch/s390/crashdump-s390.c
diff options
context:
space:
mode:
Diffstat (limited to 'kexec/arch/s390/crashdump-s390.c')
-rw-r--r--kexec/arch/s390/crashdump-s390.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kexec/arch/s390/crashdump-s390.c b/kexec/arch/s390/crashdump-s390.c
index 10f4d60..3bd9efe 100644
--- a/kexec/arch/s390/crashdump-s390.c
+++ b/kexec/arch/s390/crashdump-s390.c
@@ -52,7 +52,8 @@ static int create_elf_header(struct kexec_info *info, unsigned long crash_base,
elfcorehdr_size = bufsz;
snprintf(str, sizeof(str), " elfcorehdr=%ld@%ldK\n",
elfcorehdr_size, elfcorehdr / 1024);
- command_line_add(str);
+ if (command_line_add(info, str))
+ return -1;
#endif
return 0;
}