Re: [PATCH] EVMS core (3/9) discover.c

Kevin Corry (corryk@us.ibm.com)
Thu, 10 Oct 2002 16:15:34 -0500


On Thursday 10 October 2002 15:48, Andi Kleen wrote:
> Kevin Corry <corryk@us.ibm.com> writes:
> > +
> > + if (!gd) {
> > + gd = alloc_disk();
> > + BUG_ON(!gd);
>
> BUG_ON ? Can't this fail for legal reasons?

Yes, it can. This, and a couple other incorrect BUG_ON() statements have been
fixed to fail gracefully. Thanks for catching this.

-- 
Kevin Corry
corryk@us.ibm.com
http://evms.sourceforge.net/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/