From: Linus Torvalds Date: Wed, 5 May 2010 18:18:16 +0000 (-0700) Subject: Merge branch 'slab-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/penber... X-Git-Tag: v2.6.34-rc7~17 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=commitdiff_plain;h=65be2f501f5b31208a963713e6702d40e8e7863d;hp=5f233706592fcce7df57e12674461c349b8f591d Merge branch 'slab-for-linus' of git://git./linux/kernel/git/penberg/slab-2.6 * 'slab-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/slab-2.6: slub: Fix bad boundary check in init_kmem_cache_nodes() --- diff --git a/mm/slub.c b/mm/slub.c index 7d6c8b1ccf63..d2a54fe71ea2 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -2153,7 +2153,7 @@ static int init_kmem_cache_nodes(struct kmem_cache *s, gfp_t gfpflags) int local_node; if (slab_state >= UP && (s < kmalloc_caches || - s > kmalloc_caches + KMALLOC_CACHES)) + s >= kmalloc_caches + KMALLOC_CACHES)) local_node = page_to_nid(virt_to_page(s)); else local_node = 0;