From 9163582c3f22cfba90a78749751ac70b127a9167 Mon Sep 17 00:00:00 2001 From: Mikulas Patocka Date: Thu, 9 Oct 2014 15:26:20 -0700 Subject: [PATCH] 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 Reviewed-by: Pekka Enberg Acked-by: Christoph Lameter Cc: David Rientjes Cc: Joonsoo Kim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-format-patch failed