[PATCH] powerpc: Fix bug in bug fix for bug in lmb_alloc()
Michael Ellerman
michael at ellerman.id.au
Thu Mar 16 14:47:20 EST 2006
My patch (d7a5b2ffa1352f0310630934a56aecbdfb617b72) to always panic if
lmb_alloc() fails is broken because it checks alloc < 0, but should be
checking alloc == 0. This should go into 2.6.16 :/
Signed-off-by: Michael Ellerman <michael at ellerman.id.au>
---
arch/powerpc/mm/lmb.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: to-merge/arch/powerpc/mm/lmb.c
===================================================================
--- to-merge.orig/arch/powerpc/mm/lmb.c
+++ to-merge/arch/powerpc/mm/lmb.c
@@ -232,7 +232,7 @@ unsigned long __init lmb_alloc_base(unsi
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);
More information about the Linuxppc64-dev
mailing list