aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/slab.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mm/slab.c b/mm/slab.c
index 122d031baab2..e57abd45eede 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -2372,6 +2372,9 @@ void *kmem_cache_alloc_node(kmem_cache_t *cachep, int flags, int nodeid)
2372 struct slab *slabp; 2372 struct slab *slabp;
2373 kmem_bufctl_t next; 2373 kmem_bufctl_t next;
2374 2374
2375 if (nodeid == -1)
2376 return kmem_cache_alloc(cachep, flags);
2377
2375 for (loop = 0;;loop++) { 2378 for (loop = 0;;loop++) {
2376 struct list_head *q; 2379 struct list_head *q;
2377 2380