summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-09-16 19:36:06 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2008-09-16 19:36:06 -0700
commitc8b0f4382cd7b5e58b17bd30d16898b7f249813c (patch)
treefafd4d076584ca179ac8264b15391330e4e020b7
parent1b901aa2b5debe0df02e9d6bb8d86e342b6d47b5 (diff)
parent02b71b70129aaaa38f280af2aa5a767a4dec9107 (diff)
downloadlinux-c8b0f4382cd7b5e58b17bd30d16898b7f249813c.tar.bz2
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/slab-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/slab-2.6: slub: fixed uninitialized counter in struct kmem_cache_node
-rw-r--r--mm/slub.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/slub.c b/mm/slub.c
index fb486d5540f8..0c83e6afe7b2 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -1932,6 +1932,7 @@ init_kmem_cache_node(struct kmem_cache_node *n, struct kmem_cache *s)
INIT_LIST_HEAD(&n->partial);
#ifdef CONFIG_SLUB_DEBUG
atomic_long_set(&n->nr_slabs, 0);
+ atomic_long_set(&n->total_objects, 0);
INIT_LIST_HEAD(&n->full);
#endif
}