From: roel kluin Date: Wed, 29 Oct 2008 21:18:07 +0000 (-0400) Subject: slab: unsigned slabp->inuse cannot be less than 0 X-Git-Tag: v2.6.29-rc1~565^2~1^2~2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=249b9f331ec162af5a1fdb80f90cce77c2043985;p=linux-2.6-omap-h63xx.git slab: unsigned slabp->inuse cannot be less than 0 unsigned slabp->inuse cannot be less than 0 Acked-by: Christoph Lameter Signed-off-by: Pekka Enberg --- diff --git a/mm/slab.c b/mm/slab.c index a1478779901..445bcc87b34 100644 --- a/mm/slab.c +++ b/mm/slab.c @@ -2997,7 +2997,7 @@ retry: * there must be at least one object available for * allocation. */ - BUG_ON(slabp->inuse < 0 || slabp->inuse >= cachep->num); + BUG_ON(slabp->inuse >= cachep->num); while (slabp->inuse < cachep->num && batchcount--) { STATS_INC_ALLOCED(cachep);