bluetooth: sco: Fix sockptr reference.
[linux-2.6-microblaze.git] / net / bluetooth / sco.c
index 6e6b038..dcf7f96 100644 (file)
@@ -859,7 +859,7 @@ static int sco_sock_setsockopt(struct socket *sock, int level, int optname,
                break;
 
        case BT_PKT_STATUS:
-               if (get_user(opt, (u32 __user *)optval)) {
+               if (copy_from_sockptr(&opt, optval, sizeof(u32))) {
                        err = -EFAULT;
                        break;
                }