Message ID | 20200727134433.1c4ea34e@canb.auug.org.au |
---|---|
State | Not Applicable |
Delegated to: | David Miller |
Headers | show |
Series | linux-next: build failure after merge of the bluetooth tree | expand |
The fixup looks good to me, thanks.
Same here, thanks for the fix! On Mon, Jul 27, 2020 at 1:22 AM Christoph Hellwig <hch@lst.de> wrote: > > The fixup looks good to me, thanks.
diff --git a/net/bluetooth/sco.c b/net/bluetooth/sco.c index 6e6b03844a2a..dcf7f96ff417 100644 --- a/net/bluetooth/sco.c +++ b/net/bluetooth/sco.c @@ -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; }