diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2009-01-11 18:27:10 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2009-01-30 21:32:56 +0000 |
commit | 012703e0fc9fb1d6cdf778c49f45b796a85ef5bc (patch) | |
tree | 969915f9987b3d3eb36b3b1a5316dd54639b83c1 /arch/mips/kernel/mips-mt-fpaff.c | |
parent | 33bfad54b58cf05cfe6678c3ec9235d4bc8db4c2 (diff) | |
download | op-kernel-dev-012703e0fc9fb1d6cdf778c49f45b796a85ef5bc.zip op-kernel-dev-012703e0fc9fb1d6cdf778c49f45b796a85ef5bc.tar.gz |
MIPS: SMTC: Fix build after recent creditial changes.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/mips-mt-fpaff.c')
-rw-r--r-- | arch/mips/kernel/mips-mt-fpaff.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/kernel/mips-mt-fpaff.c b/arch/mips/kernel/mips-mt-fpaff.c index 5e77a3a..4246131 100644 --- a/arch/mips/kernel/mips-mt-fpaff.c +++ b/arch/mips/kernel/mips-mt-fpaff.c @@ -79,7 +79,8 @@ asmlinkage long mipsmt_sys_sched_setaffinity(pid_t pid, unsigned int len, euid = current_euid(); 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); goto out_unlock; } |