diff options
-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); |