Browse Source

MIPS: SMTC: Fix build after recent creditial changes.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle 16 years ago
parent
commit
012703e0fc
1 changed files with 2 additions and 1 deletions
  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();
 	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;
 	}
 	}