diff options
author | roel kluin <roel.kluin@gmail.com> | 2008-10-29 17:18:07 -0400 |
---|---|---|
committer | Pekka Enberg <penberg@cs.helsinki.fi> | 2008-11-26 09:47:26 -0500 |
commit | 249b9f331ec162af5a1fdb80f90cce77c2043985 (patch) | |
tree | 619fd994b598bb6970727484fbbfa6ac1f0d2388 /mm/slab.c | |
parent | e9beef1815ab3aa88925595582cf09e64b2b9894 (diff) |
slab: unsigned slabp->inuse cannot be less than 0
unsigned slabp->inuse cannot be less than 0
Acked-by: Christoph Lameter <cl@linux-foundation.org
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Diffstat (limited to 'mm/slab.c')
-rw-r--r-- | mm/slab.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2997,7 +2997,7 @@ retry: | |||
2997 | * there must be at least one object available for | 2997 | * there must be at least one object available for |
2998 | * allocation. | 2998 | * allocation. |
2999 | */ | 2999 | */ |
3000 | BUG_ON(slabp->inuse < 0 || slabp->inuse >= cachep->num); | 3000 | BUG_ON(slabp->inuse >= cachep->num); |
3001 | 3001 | ||
3002 | while (slabp->inuse < cachep->num && batchcount--) { | 3002 | while (slabp->inuse < cachep->num && batchcount--) { |
3003 | STATS_INC_ALLOCED(cachep); | 3003 | STATS_INC_ALLOCED(cachep); |