X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=mm%2Fslab.c;h=4cbf8bb135571f620ee76b9e76cdf1186ba24889;hb=5bbc53f4cfd28bf1d0e476ed23bc3a094eff718a;hp=681837499d7d59fa967cd2297a250ceff6e278af;hpb=1e8c573933fd7975679766850252ad08667e5ca4;p=powerpc.git 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); }