diff options
Diffstat (limited to 'mm/slab.c')
-rw-r--r-- | mm/slab.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -854,7 +854,6 @@ static int __devinit cpuup_callback(struct notifier_block *nfb, | |||
854 | struct kmem_list3 *l3 = NULL; | 854 | struct kmem_list3 *l3 = NULL; |
855 | int node = cpu_to_node(cpu); | 855 | int node = cpu_to_node(cpu); |
856 | int memsize = sizeof(struct kmem_list3); | 856 | int memsize = sizeof(struct kmem_list3); |
857 | struct array_cache *nc = NULL; | ||
858 | 857 | ||
859 | switch (action) { | 858 | switch (action) { |
860 | case CPU_UP_PREPARE: | 859 | case CPU_UP_PREPARE: |
@@ -891,6 +890,8 @@ static int __devinit cpuup_callback(struct notifier_block *nfb, | |||
891 | /* Now we can go ahead with allocating the shared array's | 890 | /* Now we can go ahead with allocating the shared array's |
892 | & array cache's */ | 891 | & array cache's */ |
893 | list_for_each_entry(cachep, &cache_chain, next) { | 892 | list_for_each_entry(cachep, &cache_chain, next) { |
893 | struct array_cache *nc; | ||
894 | |||
894 | nc = alloc_arraycache(node, cachep->limit, | 895 | nc = alloc_arraycache(node, cachep->limit, |
895 | cachep->batchcount); | 896 | cachep->batchcount); |
896 | if (!nc) | 897 | if (!nc) |