Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 249b9f33 authored by roel kluin's avatar roel kluin Committed by Pekka Enberg
Browse files

slab: unsigned slabp->inuse cannot be less than 0



unsigned slabp->inuse cannot be less than 0

Acked-by: default avatarChristoph Lameter <cl@linux-foundation.org>
Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarPekka Enberg <penberg@cs.helsinki.fi>
parent e9beef18
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);