]> err.no Git - linux-2.6/blobdiff - kernel/futex.c
[IPV4]: Fix ip command line processing.
[linux-2.6] / kernel / futex.c
index e8fbdd7d95ac8ef74bf84a25a68e11ac286da60c..172a1aeeafdb5a148f6a0063bc3bc719b1974096 100644 (file)
@@ -658,7 +658,7 @@ static int wake_futex_pi(u32 __user *uaddr, u32 uval, struct futex_q *this)
 
                if (curval == -EFAULT)
                        ret = -EFAULT;
-               if (curval != uval)
+               else if (curval != uval)
                        ret = -EINVAL;
                if (ret) {
                        spin_unlock(&pi_state->pi_mutex.wait_lock);