diff options
Diffstat (limited to 'mm/mempolicy.c')
| -rw-r--r-- | mm/mempolicy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/mempolicy.c b/mm/mempolicy.c index 75751012c552..5d6fb339de03 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c | |||
| @@ -2098,7 +2098,7 @@ void mpol_shared_policy_init(struct shared_policy *sp, struct mempolicy *mpol) | |||
| 2098 | /* contextualize the tmpfs mount point mempolicy */ | 2098 | /* contextualize the tmpfs mount point mempolicy */ |
| 2099 | new = mpol_new(mpol->mode, mpol->flags, &mpol->w.user_nodemask); | 2099 | new = mpol_new(mpol->mode, mpol->flags, &mpol->w.user_nodemask); |
| 2100 | if (IS_ERR(new)) | 2100 | if (IS_ERR(new)) |
| 2101 | goto put_free; /* no valid nodemask intersection */ | 2101 | goto free_scratch; /* no valid nodemask intersection */ |
| 2102 | 2102 | ||
| 2103 | task_lock(current); | 2103 | task_lock(current); |
| 2104 | ret = mpol_set_nodemask(new, &mpol->w.user_nodemask, scratch); | 2104 | ret = mpol_set_nodemask(new, &mpol->w.user_nodemask, scratch); |
| @@ -2114,6 +2114,7 @@ void mpol_shared_policy_init(struct shared_policy *sp, struct mempolicy *mpol) | |||
| 2114 | 2114 | ||
| 2115 | put_free: | 2115 | put_free: |
| 2116 | mpol_put(new); /* drop initial ref */ | 2116 | mpol_put(new); /* drop initial ref */ |
| 2117 | free_scratch: | ||
| 2117 | NODEMASK_SCRATCH_FREE(scratch); | 2118 | NODEMASK_SCRATCH_FREE(scratch); |
| 2118 | } | 2119 | } |
| 2119 | } | 2120 | } |
