Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 012703e0 authored by Ralf Baechle's avatar Ralf Baechle
Browse files

MIPS: SMTC: Fix build after recent creditial changes.

parent 33bfad54
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -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;
	}
	}