diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/mempolicy.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mm/mempolicy.c b/mm/mempolicy.c index 172abffeb2e..bb54b88c3d5 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c | |||
@@ -955,6 +955,11 @@ asmlinkage long sys_migrate_pages(pid_t pid, unsigned long maxnode, | |||
955 | goto out; | 955 | goto out; |
956 | } | 956 | } |
957 | 957 | ||
958 | if (!nodes_subset(new, node_online_map)) { | ||
959 | err = -EINVAL; | ||
960 | goto out; | ||
961 | } | ||
962 | |||
958 | err = security_task_movememory(task); | 963 | err = security_task_movememory(task); |
959 | if (err) | 964 | if (err) |
960 | goto out; | 965 | goto out; |