MIPS: MT: Fix build with CONFIG_UIDGID_STRICT_TYPE_CHECKS=y
[pandora-kernel.git] / arch / mips / kernel / mips-mt-fpaff.c
index 33f63ba..fd814e0 100644 (file)
@@ -50,8 +50,8 @@ static bool check_same_owner(struct task_struct *p)
 
        rcu_read_lock();
        pcred = __task_cred(p);
-       match = (cred->euid == pcred->euid ||
-                cred->euid == pcred->uid);
+       match = (uid_eq(cred->euid, pcred->euid) ||
+                uid_eq(cred->euid, pcred->uid));
        rcu_read_unlock();
        return match;
 }