MIPS: SMTC: Fix build after recent creditial changes.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
33bfad54b5
commit
012703e0fc
|
@ -79,7 +79,8 @@ asmlinkage long mipsmt_sys_sched_setaffinity(pid_t pid, unsigned int len,
|
||||||
|
|
||||||
euid = current_euid();
|
euid = current_euid();
|
||||||
retval = -EPERM;
|
retval = -EPERM;
|
||||||
if (euid != p->euid && euid != p->uid && !capable(CAP_SYS_NICE)) {
|
if (euid != p->cred->euid && euid != p->cred->uid &&
|
||||||
|
!capable(CAP_SYS_NICE)) {
|
||||||
read_unlock(&tasklist_lock);
|
read_unlock(&tasklist_lock);
|
||||||
goto out_unlock;
|
goto out_unlock;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue