forked from luck/tmp_suning_uos_patched
bluetooth: sco: Fix sockptr reference.
net/bluetooth/sco.c: In function ‘sco_sock_setsockopt’: net/bluetooth/sco.c:862:3: error: cannot convert to a pointer type 862 | if (get_user(opt, (u32 __user *)optval)) { | ^~ Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4bb540dbe4
commit
83a33b2487
|
@ -859,7 +859,7 @@ static int sco_sock_setsockopt(struct socket *sock, int level, int optname,
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case BT_PKT_STATUS:
|
case BT_PKT_STATUS:
|
||||||
if (get_user(opt, (u32 __user *)optval)) {
|
if (copy_from_sockptr(&opt, optval, sizeof(u32))) {
|
||||||
err = -EFAULT;
|
err = -EFAULT;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user