diff options
Diffstat (limited to 'init/main.c')
-rw-r--r-- | init/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/init/main.c b/init/main.c index dd25259530ea..2769dc031c62 100644 --- a/init/main.c +++ b/init/main.c | |||
@@ -637,9 +637,10 @@ asmlinkage void __init start_kernel(void) | |||
637 | 637 | ||
638 | #ifdef CONFIG_BLK_DEV_INITRD | 638 | #ifdef CONFIG_BLK_DEV_INITRD |
639 | if (initrd_start && !initrd_below_start_ok && | 639 | if (initrd_start && !initrd_below_start_ok && |
640 | initrd_start < min_low_pfn << PAGE_SHIFT) { | 640 | page_to_pfn(virt_to_page(initrd_start)) < min_low_pfn) { |
641 | printk(KERN_CRIT "initrd overwritten (0x%08lx < 0x%08lx) - " | 641 | printk(KERN_CRIT "initrd overwritten (0x%08lx < 0x%08lx) - " |
642 | "disabling it.\n",initrd_start,min_low_pfn << PAGE_SHIFT); | 642 | "disabling it.\n", |
643 | page_to_pfn(virt_to_page(initrd_start)), min_low_pfn); | ||
643 | initrd_start = 0; | 644 | initrd_start = 0; |
644 | } | 645 | } |
645 | #endif | 646 | #endif |