]> git.hungrycats.org Git - linux/commitdiff
sparse: fix up futex address space warning
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 3 Jun 2004 01:20:09 +0000 (18:20 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 3 Jun 2004 01:20:09 +0000 (18:20 -0700)
kernel/futex.c

index f7afaf5d38def854dea33394bd21e1b4741f57d4..2cc32989db762d9afeaad6fd4aef890012e61205 100644 (file)
@@ -354,7 +354,7 @@ static int futex_requeue(unsigned long uaddr1, unsigned long uaddr2,
                   before *uaddr1.  */
                smp_mb();
 
-               if (get_user(curval, (int *)uaddr1) != 0) {
+               if (get_user(curval, (int __user *)uaddr1) != 0) {
                        ret = -EFAULT;
                        goto out;
                }