]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - kernel/kexec.c
nbd: don't shutdown sock with irq's disabled
[karo-tx-linux.git] / kernel / kexec.c
index 4384672d324516128557e4f7b29637a4cca1df30..980936a90ee6ea0a9f83c195277a7c0705a8bbaa 100644 (file)
@@ -48,7 +48,8 @@ static int kimage_alloc_init(struct kimage **rimage, unsigned long entry,
 
        if (kexec_on_panic) {
                /* Verify we have a valid entry point */
-               if ((entry < crashk_res.start) || (entry > crashk_res.end))
+               if ((entry < phys_to_boot_phys(crashk_res.start)) ||
+                   (entry > phys_to_boot_phys(crashk_res.end)))
                        return -EADDRNOTAVAIL;
        }