X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=mm%2Fslab.c;h=4cbf8bb135571f620ee76b9e76cdf1186ba24889;hb=c0e4077c946104e5d8a62f835dcdca5c79c8af7d;hp=681837499d7d59fa967cd2297a250ceff6e278af;hpb=3661f00e2097676847deb01add1a0918044bd816;p=linux-2.6 diff --git a/mm/slab.c b/mm/slab.c index 681837499d..4cbf8bb135 100644 --- a/mm/slab.c +++ b/mm/slab.c @@ -3311,7 +3311,7 @@ void *__alloc_percpu(size_t size) * and we have no way of figuring out how to fix the array * that we have allocated then.... */ - for_each_cpu(i) { + for_each_possible_cpu(i) { int node = cpu_to_node(i); if (node_online(node)) @@ -3398,7 +3398,7 @@ void free_percpu(const void *objp) /* * We allocate for all cpus so we cannot use for online cpu here. */ - for_each_cpu(i) + for_each_possible_cpu(i) kfree(p->ptrs[i]); kfree(p); }