]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - kernel/ksysfs.c
x86/efi: Use efi_exit_boot_services()
[karo-tx-linux.git] / kernel / ksysfs.c
index 9f1920d2d0c6dfaa285039b02edcf9db2af3352f..ee1bc1bb8feb82f4873eb38106805c2823bed7b2 100644 (file)
@@ -101,7 +101,7 @@ KERNEL_ATTR_RO(kexec_loaded);
 static ssize_t kexec_crash_loaded_show(struct kobject *kobj,
                                       struct kobj_attribute *attr, char *buf)
 {
-       return sprintf(buf, "%d\n", !!kexec_crash_image);
+       return sprintf(buf, "%d\n", kexec_crash_loaded());
 }
 KERNEL_ATTR_RO(kexec_crash_loaded);