Re: Infinite loop on boot in free_early_partial due to start==endon tip/master

From: Ian Campbell
Date: Fri Mar 05 2010 - 14:45:50 EST


On Fri, 2010-03-05 at 18:16 +0000, Yinghai Lu wrote:
>
> > + if (unlikely(start>=end)) {
> > + WARN_ONCE(1, "free_early_partial get wrong start/end
> \n:);
> > + return;
> > + }
> > +

Sure, although this can be written:

if (WARN_ONCE(start >= end, "free_early_partial.....\n"))
return;

Updated patch to follow.

Ian.



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/