diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-09-17 04:36:06 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-09-17 04:36:06 +0200 |
commit | c8b0f4382cd7b5e58b17bd30d16898b7f249813c (patch) | |
tree | fafd4d076584ca179ac8264b15391330e4e020b7 | |
parent | Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus (diff) | |
parent | slub: fixed uninitialized counter in struct kmem_cache_node (diff) | |
download | linux-c8b0f4382cd7b5e58b17bd30d16898b7f249813c.tar.xz linux-c8b0f4382cd7b5e58b17bd30d16898b7f249813c.zip |
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.c | 1 |
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 } |