From: Ralf Baechle Date: Sun, 11 Jan 2009 18:27:10 +0000 (+0000) Subject: MIPS: SMTC: Fix build after recent creditial changes. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=012703e0fc9fb1d6cdf778c49f45b796a85ef5bc;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git MIPS: SMTC: Fix build after recent creditial changes. Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/kernel/mips-mt-fpaff.c b/arch/mips/kernel/mips-mt-fpaff.c index 5e77a3a21f98..42461310b185 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; }