git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
5f23370
)
Merge branch 'slab-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/penber...
author
Linus Torvalds
<torvalds@linux-foundation.org>
Wed, 5 May 2010 18:18:16 +0000
(11:18 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Wed, 5 May 2010 18:18:16 +0000
(11:18 -0700)
* '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()
mm/slub.c
patch
|
blob
|
history
diff --git
a/mm/slub.c
b/mm/slub.c
index
7d6c8b1
..
d2a54fe
100644
(file)
--- 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;