Merge git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc
[powerpc.git] / arch / powerpc / mm / lmb.c
index 874cd10..417d585 100644 (file)
@@ -232,7 +232,7 @@ unsigned long __init lmb_alloc_base(unsigned long size, unsigned long align,
 
        alloc = __lmb_alloc_base(size, align, max_addr);
 
-       if (alloc < 0)
+       if (alloc == 0)
                panic("ERROR: Failed to allocate 0x%lx bytes below 0x%lx.\n",
                                size, max_addr);