slab: initialize unused alien cache entry as NULL at alloc_alien_cache().
commit0b7196b95e817ca95d15842269167324734c1c0e
authorHaicheng Li <haicheng.li@linux.intel.com>
Wed, 6 Jan 2010 07:25:23 +0000 (6 15:25 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 15 Mar 2010 16:05:55 +0000 (15 09:05 -0700)
treea02025e309f268dcb82d7bd0915864af9b0b291b
parentf6bbb1be3901ce3c9166ef541bee8d47cba5d3fc
slab: initialize unused alien cache entry as NULL at alloc_alien_cache().

commit f3186a9c51eabe75b2780153ed7f07778d78b16e upstream.

Comparing with existing code, it's a simpler way to use kzalloc_node()
to ensure that each unused alien cache entry is NULL.

CC: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Christoph Lameter <cl@linux-foundation.org>
Acked-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Haicheng Li <haicheng.li@linux.intel.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
mm/slab.c