projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8777c79
)
slub: Fix bad boundary check in init_kmem_cache_nodes()
author
Zhang, Yanmin
<
[email protected]
>
Thu, 1 Apr 2010 09:32:30 +0000
(17:32 +0800)
committer
Pekka Enberg
<
[email protected]
>
Wed, 5 May 2010 18:12:19 +0000
(21:12 +0300)
Function init_kmem_cache_nodes is incorrect when checking upper limitation of
kmalloc_caches. The breakage was introduced by commit
91efd773c74bb26b5409c85ad755d536448e229c
("dma kmalloc handling fixes").
Acked-by: Christoph Lameter <
[email protected]
>
Signed-off-by: Pekka Enberg <
[email protected]
>
mm/slub.c
patch
|
blob
|
history
diff --git
a/mm/slub.c
b/mm/slub.c
index 7d6c8b1ccf63afda07c374ff9d4b933f44dbed12..d2a54fe71ea22519feada61f181e874685c0a51b 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;