From 47c43ddf60e23712f04540e44b6c0bd540793bf2 Mon Sep 17 00:00:00 2001 From: Xunlei Pang Date: Wed, 10 Feb 2016 10:13:42 +1100 Subject: [PATCH] kexec-introduce-a-protection-mechanism-for-the-crashkernel-reserved-memory-v4 Signed-off-by: Xunlei Pang Cc: Eric Biederman Cc: Dave Young Cc: Minfei Huang Cc: Vivek Goyal Signed-off-by: Andrew Morton --- kernel/kexec_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/kexec_file.c b/kernel/kexec_file.c index 026e3263d7a7..ecc5eda50965 100644 --- a/kernel/kexec_file.c +++ b/kernel/kexec_file.c @@ -382,7 +382,7 @@ SYSCALL_DEFINE5(kexec_file_load, int, kernel_fd, int, initrd_fd, exchange: image = xchg(dest_image, image); out: - if ((flags & KEXEC_ON_CRASH) && kexec_crash_image) + if ((flags & KEXEC_FILE_ON_CRASH) && kexec_crash_image) arch_kexec_protect_crashkres(); mutex_unlock(&kexec_mutex); -- 2.39.5