projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9beef1
)
slab: unsigned slabp->inuse cannot be less than 0
author
roel kluin
<roel.kluin@gmail.com>
Wed, 29 Oct 2008 21:18:07 +0000
(17:18 -0400)
committer
Pekka Enberg
<penberg@cs.helsinki.fi>
Wed, 26 Nov 2008 14:47:26 +0000
(16:47 +0200)
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>
mm/slab.c
patch
|
blob
|
blame
|
history
diff --git
a/mm/slab.c
b/mm/slab.c
index a1478779901406362b9898d9a41c765c90430afb..445bcc87b34697886138c62b9e5e1bd3750cb5b1 100644
(file)
--- 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);