From: David S. Miller Date: Thu, 15 May 2008 06:10:33 +0000 (-0700) Subject: sparc64: Fix lmb_reserve() args in find_ramdisk(). X-Git-Tag: v2.6.26-rc3~22^2~1 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7047901ec7d6eca97cf66f54b8a4197bb0754f40;p=linux-2.6-omap-h63xx.git sparc64: Fix lmb_reserve() args in find_ramdisk(). This fixes the missing ram regression reported by Mikael Pettersson , much thanks for all of this help in diagnosing this. The second argument to lmb_reserve() is a size, not an end address bounds. Tested-by: Mikael Pettersson Signed-off-by: David S. Miller --- diff --git a/arch/sparc64/mm/init.c b/arch/sparc64/mm/init.c index a9828d748e2..3c7b9471eaf 100644 --- a/arch/sparc64/mm/init.c +++ b/arch/sparc64/mm/init.c @@ -768,7 +768,7 @@ static void __init find_ramdisk(unsigned long phys_base) initrd_start = ramdisk_image; initrd_end = ramdisk_image + sparc_ramdisk_size; - lmb_reserve(initrd_start, initrd_end); + lmb_reserve(initrd_start, sparc_ramdisk_size); initrd_start += PAGE_OFFSET; initrd_end += PAGE_OFFSET;