summaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/kexec_image.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/s390/kernel/kexec_image.c')
-rw-r--r--arch/s390/kernel/kexec_image.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/kernel/kexec_image.c b/arch/s390/kernel/kexec_image.c
index af23eff577..a32ce8bea7 100644
--- a/arch/s390/kernel/kexec_image.c
+++ b/arch/s390/kernel/kexec_image.c
@@ -24,8 +24,10 @@ static int kexec_file_add_kernel_image(struct kimage *image,
buf.bufsz = image->kernel_buf_len;
buf.mem = 0;
+#ifdef CONFIG_CRASH_DUMP
if (image->type == KEXEC_TYPE_CRASH)
buf.mem += crashk_res.start;
+#endif
buf.memsz = buf.bufsz;
data->kernel_buf = image->kernel_buf;