diff options
author | Andi Kleen <ak@linux.intel.com> | 2008-07-22 00:16:54 +0200 |
---|---|---|
committer | Andi Kleen <ak@linux.intel.com> | 2008-07-22 00:16:54 +0200 |
commit | 8294fafdafc602ed11f401c44628fab8558c5cf5 (patch) | |
tree | c8d0371cfd05226b56d52bfde9c69f8caca4501d /init/main.c | |
parent | 725c3a2d70f958adee807c178178819a50f68a56 (diff) | |
parent | bf20e740a4bcc686de02e2fd1c1810a58872f46e (diff) |
Merge branch 'for-upstream/acpi-test' of git://repo.or.cz/linux-2.6/linux-acpi-2.6/ibm-acpi-2.6 into release-2.6.27
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 edeace036fd..756eca4b821 100644 --- a/init/main.c +++ b/init/main.c @@ -630,9 +630,10 @@ asmlinkage void __init start_kernel(void) #ifdef CONFIG_BLK_DEV_INITRD if (initrd_start && !initrd_below_start_ok && - initrd_start < min_low_pfn << PAGE_SHIFT) { + page_to_pfn(virt_to_page(initrd_start)) < min_low_pfn) { printk(KERN_CRIT "initrd overwritten (0x%08lx < 0x%08lx) - " - "disabling it.\n",initrd_start,min_low_pfn << PAGE_SHIFT); + "disabling it.\n", + page_to_pfn(virt_to_page(initrd_start)), min_low_pfn); initrd_start = 0; } #endif |