aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/slab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/slab.c b/mm/slab.c
index a14787799014..445bcc87b346 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -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);