aboutsummaryrefslogtreecommitdiffstats
path: root/mm/mempolicy.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/mempolicy.c')
-rw-r--r--mm/mempolicy.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/mm/mempolicy.c b/mm/mempolicy.c
index ac5aeafaec9a..0e1b293e4054 100644
--- a/mm/mempolicy.c
+++ b/mm/mempolicy.c
@@ -2239,7 +2239,10 @@ int mpol_parse_str(char *str, struct mempolicy **mpol, int no_context)
2239 if (IS_ERR(new)) 2239 if (IS_ERR(new))
2240 goto out; 2240 goto out;
2241 2241
2242 { 2242 if (no_context) {
2243 /* save for contextualization */
2244 new->w.user_nodemask = nodes;
2245 } else {
2243 int ret; 2246 int ret;
2244 NODEMASK_SCRATCH(scratch); 2247 NODEMASK_SCRATCH(scratch);
2245 if (scratch) { 2248 if (scratch) {
@@ -2255,10 +2258,6 @@ int mpol_parse_str(char *str, struct mempolicy **mpol, int no_context)
2255 } 2258 }
2256 } 2259 }
2257 err = 0; 2260 err = 0;
2258 if (no_context) {
2259 /* save for contextualization */
2260 new->w.user_nodemask = nodes;
2261 }
2262 2261
2263out: 2262out:
2264 /* Restore string for error message */ 2263 /* Restore string for error message */