summaryrefslogtreecommitdiffstats
path: root/mm/slab_common.c
diff options
context:
space:
mode:
authorMikulas Patocka2014-10-10 00:26:20 +0200
committerLinus Torvalds2014-10-10 04:25:51 +0200
commit9163582c3f22cfba90a78749751ac70b127a9167 (patch)
treee3300b170d693fae1ae2f35dce016f5ecedb6058 /mm/slab_common.c
parentkernel/kthread.c: partial revert of 81c98869faa5 ("kthread: ensure locality o... (diff)
downloadkernel-qcow2-linux-9163582c3f22cfba90a78749751ac70b127a9167.tar.gz
kernel-qcow2-linux-9163582c3f22cfba90a78749751ac70b127a9167.tar.xz
kernel-qcow2-linux-9163582c3f22cfba90a78749751ac70b127a9167.zip
slab: fix for_each_kmem_cache_node()
Fix a bug (discovered with kmemcheck) in for_each_kmem_cache_node(). The for loop reads the array "node" before verifying that the index is within the range. This results in kmemcheck warning. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Reviewed-by: Pekka Enberg <penberg@kernel.org> Acked-by: Christoph Lameter <cl@linux.com> Cc: David Rientjes <rientjes@google.com> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/slab_common.c')
0 files changed, 0 insertions, 0 deletions