slub: Fix bad boundary check in init_kmem_cache_nodes()
Function init_kmem_cache_nodes is incorrect when checking upper limitation of
kmalloc_caches. The breakage was introduced by commit
91efd773c7
("dma kmalloc handling fixes").
Acked-by: Christoph Lameter <cl@linux-foundation.org>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
This commit is contained in:
parent
8777c793d6
commit
111c7d8243
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue