diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/vmscan.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index cfffe5098d53..ab631a3c62c3 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c | |||
@@ -1375,6 +1375,9 @@ asmlinkage long sys_set_zone_reclaim(unsigned int node, unsigned int zone, | |||
1375 | struct zone *z; | 1375 | struct zone *z; |
1376 | int i; | 1376 | int i; |
1377 | 1377 | ||
1378 | if (!capable(CAP_SYS_ADMIN)) | ||
1379 | return -EACCES; | ||
1380 | |||
1378 | if (node >= MAX_NUMNODES || !node_online(node)) | 1381 | if (node >= MAX_NUMNODES || !node_online(node)) |
1379 | return -EINVAL; | 1382 | return -EINVAL; |
1380 | 1383 | ||