浏览代码

MIPS: SMTC: Fix build after recent creditial changes.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle 16 年之前
父节点
当前提交
012703e0fc
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      arch/mips/kernel/mips-mt-fpaff.c

+ 2 - 1
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;
 	}