summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2005-01-29 05:15:35 +0100
committerMarcel Holtmann <marcel@holtmann.org>2005-01-29 05:15:35 +0100
commit7af32eeba53677bf2c0ce6245252a0a17992b95f (patch)
treeb638848c0fc5699d634c25e54465a132c6448579
parent842ca9a3e367001255fd53e52d6073dea161fa9e (diff)
[Bluetooth] Remove MTU check for the L2CAP raw socket
The L2CAP raw socket is associated with the signal channel and the check for the maximum transfer unit makes no sense here. Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
-rw-r--r--net/bluetooth/l2cap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c
index 3969c7ce67aa..ff8d31015211 100644
--- a/net/bluetooth/l2cap.c
+++ b/net/bluetooth/l2cap.c
@@ -770,7 +770,7 @@ static int l2cap_sock_sendmsg(struct kiocb *iocb, struct socket *sock, struct ms
return -EOPNOTSUPP;
/* Check outgoing MTU */
- if (len > l2cap_pi(sk)->omtu)
+ if (sk->sk_type != SOCK_RAW && len > l2cap_pi(sk)->omtu)
return -EINVAL;
lock_sock(sk);