diff options
Diffstat (limited to 'mm/migrate.c')
-rw-r--r-- | mm/migrate.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mm/migrate.c b/mm/migrate.c index 033a12f4c949..1c2a71aa05cd 100644 --- a/mm/migrate.c +++ b/mm/migrate.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <linux/writeback.h> | 27 | #include <linux/writeback.h> |
28 | #include <linux/mempolicy.h> | 28 | #include <linux/mempolicy.h> |
29 | #include <linux/vmalloc.h> | 29 | #include <linux/vmalloc.h> |
30 | #include <linux/security.h> | ||
30 | 31 | ||
31 | #include "internal.h" | 32 | #include "internal.h" |
32 | 33 | ||
@@ -905,6 +906,11 @@ asmlinkage long sys_move_pages(pid_t pid, unsigned long nr_pages, | |||
905 | goto out2; | 906 | goto out2; |
906 | } | 907 | } |
907 | 908 | ||
909 | err = security_task_movememory(task); | ||
910 | if (err) | ||
911 | goto out2; | ||
912 | |||
913 | |||
908 | task_nodes = cpuset_mems_allowed(task); | 914 | task_nodes = cpuset_mems_allowed(task); |
909 | 915 | ||
910 | /* Limit nr_pages so that the multiplication may not overflow */ | 916 | /* Limit nr_pages so that the multiplication may not overflow */ |