OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bb540d
)
bluetooth: sco: Fix sockptr reference.
author
David S. Miller
<davem@davemloft.net>
Fri, 31 Jul 2020 23:15:03 +0000
(16:15 -0700)
committer
David S. Miller
<davem@davemloft.net>
Fri, 31 Jul 2020 23:15:03 +0000
(16:15 -0700)
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>
net/bluetooth/sco.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/sco.c
b/net/bluetooth/sco.c
index
6e6b038
..
dcf7f96
100644
(file)
--- 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;
}