aboutsummaryrefslogtreecommitdiffstats
path: root/mm/mempolicy.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/mempolicy.c')
-rw-r--r--mm/mempolicy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/mempolicy.c b/mm/mempolicy.c
index e7b69c90cfd6..ad864f8708b0 100644
--- a/mm/mempolicy.c
+++ b/mm/mempolicy.c
@@ -1326,7 +1326,7 @@ struct mempolicy *__mpol_copy(struct mempolicy *old)
1326 atomic_set(&new->refcnt, 1); 1326 atomic_set(&new->refcnt, 1);
1327 if (new->policy == MPOL_BIND) { 1327 if (new->policy == MPOL_BIND) {
1328 int sz = ksize(old->v.zonelist); 1328 int sz = ksize(old->v.zonelist);
1329 new->v.zonelist = kmemdup(old->v.zonelist, sz, SLAB_KERNEL); 1329 new->v.zonelist = kmemdup(old->v.zonelist, sz, GFP_KERNEL);
1330 if (!new->v.zonelist) { 1330 if (!new->v.zonelist) {
1331 kmem_cache_free(policy_cache, new); 1331 kmem_cache_free(policy_cache, new);
1332 return ERR_PTR(-ENOMEM); 1332 return ERR_PTR(-ENOMEM);