aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slab.c
diff options
context:
space:
mode:
authorroel kluin <roel.kluin@gmail.com>2008-10-29 17:18:07 -0400
committerPekka Enberg <penberg@cs.helsinki.fi>2008-11-26 16:47:26 +0200
commit249b9f331ec162af5a1fdb80f90cce77c2043985 (patch)
tree619fd994b598bb6970727484fbbfa6ac1f0d2388 /mm/slab.c
parentslub - fix get_object_page comment (diff)
downloadlinux-dev-249b9f331ec162af5a1fdb80f90cce77c2043985.tar.xz
linux-dev-249b9f331ec162af5a1fdb80f90cce77c2043985.zip
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.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:
* 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);