[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090620194250.5a3e826f@lappy.seanm.ca>
Date: Sat, 20 Jun 2009 19:42:50 -0400
From: Sean MacLennan <smaclennan@...atech.com>
To: Frans Pop <elendil@...net.nl>
Cc: linuxppc-dev@...abs.org, linux-kernel@...r.kernel.org
Subject: Re: Badness on the Warp
I found the source of the badness. The backtrace is correct:
uic_init_one
___alloc_bootmem
___alloc_bootmem_nopanic
alloc_arch_preferred_bootmem
In alloc_arch_preferred_bootmem we have:
if (WARN_ON_ONCE(slab_is_available()))
return kzalloc(size, GFP_NOWAIT);
Since the slab is available (it had better be or the call will return
NULL), we get the badness message, then a successful return from
kzalloc.
I believe the author wants something like:
if (slab_is_available())
return kzalloc(size, GFP_NOWAIT);
else
WARN_ON_ONCE(1);
Cheers,
Sean
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists