diff options
Diffstat (limited to 'mm/migrate.c')
-rw-r--r-- | mm/migrate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/migrate.c b/mm/migrate.c index 11072383ae1..ab81d482ae6 100644 --- a/mm/migrate.c +++ b/mm/migrate.c | |||
@@ -1371,8 +1371,8 @@ SYSCALL_DEFINE6(move_pages, pid_t, pid, unsigned long, nr_pages, | |||
1371 | * userid as the target process. | 1371 | * userid as the target process. |
1372 | */ | 1372 | */ |
1373 | tcred = __task_cred(task); | 1373 | tcred = __task_cred(task); |
1374 | if (cred->euid != tcred->suid && cred->euid != tcred->uid && | 1374 | if (!uid_eq(cred->euid, tcred->suid) && !uid_eq(cred->euid, tcred->uid) && |
1375 | cred->uid != tcred->suid && cred->uid != tcred->uid && | 1375 | !uid_eq(cred->uid, tcred->suid) && !uid_eq(cred->uid, tcred->uid) && |
1376 | !capable(CAP_SYS_NICE)) { | 1376 | !capable(CAP_SYS_NICE)) { |
1377 | rcu_read_unlock(); | 1377 | rcu_read_unlock(); |
1378 | err = -EPERM; | 1378 | err = -EPERM; |