Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 65be2f50 authored by Linus Torvalds's avatar Linus Torvalds
Browse files
* '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()
parents 5f233706 111c7d82
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;