aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 33e134b0d402..884b840081ae 100644
--- a/net/bluetooth/l2cap.c
+++ b/net/bluetooth/l2cap.c
@@ -1827,7 +1827,7 @@ static int l2cap_sock_sendmsg(struct kiocb *iocb, struct socket *sock, struct ms
1827 case L2CAP_MODE_BASIC: 1827 case L2CAP_MODE_BASIC:
1828 /* Check outgoing MTU */ 1828 /* Check outgoing MTU */
1829 if (len > pi->omtu) { 1829 if (len > pi->omtu) {
1830 err = -EINVAL; 1830 err = -EMSGSIZE;
1831 goto done; 1831 goto done;
1832 } 1832 }
1833 1833