projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bluetooth: sco: Fix sockptr reference.
[linux-2.6-microblaze.git]
/
net
/
bluetooth
/
sco.c
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;
}