summaryrefslogtreecommitdiffstats
path: root/kernel/net/bluetooth/l2cap_sock.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/net/bluetooth/l2cap_sock.c')
-rw-r--r--kernel/net/bluetooth/l2cap_sock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/net/bluetooth/l2cap_sock.c b/kernel/net/bluetooth/l2cap_sock.c
index 1bb551527..d9bbbded4 100644
--- a/kernel/net/bluetooth/l2cap_sock.c
+++ b/kernel/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, (u32 __user *) optval)) {
+ if (get_user(opt, (u16 __user *) optval)) {
err = -EFAULT;
break;
}