From 3b7fa0a50a48849c40831dc45c1d375f06bd7345 Mon Sep 17 00:00:00 2001 From: Michael Ellerman Date: Thu, 16 Mar 2006 14:47:20 +1100 Subject: [PATCH] --- yaml --- r: 22942 b: refs/heads/master c: 2c276603c3e5ebf38155a9d1fbbda656d52d138e h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/powerpc/mm/lmb.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 7d1c1db1a69e..44750996b17f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9b15879aefe6a4c2236297df68c46498af26143d +refs/heads/master: 2c276603c3e5ebf38155a9d1fbbda656d52d138e diff --git a/trunk/arch/powerpc/mm/lmb.c b/trunk/arch/powerpc/mm/lmb.c index 874cd103ce6e..417d58518558 100644 --- a/trunk/arch/powerpc/mm/lmb.c +++ b/trunk/arch/powerpc/mm/lmb.c @@ -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);