projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Bluetooth: Fix l2cap_sock_setsockopt() with optname BT_RCVMTU
[firefly-linux-kernel-4.4.55.git]
/
net
/
bluetooth
/
l2cap_sock.c
diff --git
a/net/bluetooth/l2cap_sock.c
b/net/bluetooth/l2cap_sock.c
index 1bb5515270449e8115a0c169ea5b6380594c40a4..d9bbbded49ef87bb14c7e54c0731725bda6c8b32 100644
(file)
--- a/
net/bluetooth/l2cap_sock.c
+++ b/
net/bluetooth/l2cap_sock.c
@@
-927,7
+927,7
@@
static int l2cap_sock_setsockopt(struct socket *sock, int level, int optname,
break;
}
- if (get_user(opt, (u
32
__user *) optval)) {
+ if (get_user(opt, (u
16
__user *) optval)) {
err = -EFAULT;
break;
}