aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/bluetooth/l2cap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c
index 5441083ff1ca..7da6432f6799 100644
--- a/net/bluetooth/l2cap.c
+++ b/net/bluetooth/l2cap.c
@@ -4675,7 +4675,8 @@ static int l2cap_recv_acldata(struct hci_conn *hcon, struct sk_buff *skb, u16 fl
4675 l2cap_conn_unreliable(conn, ECOMM); 4675 l2cap_conn_unreliable(conn, ECOMM);
4676 } 4676 }
4677 4677
4678 if (skb->len < 2) { 4678 /* Start fragment always begin with Basic L2CAP header */
4679 if (skb->len < L2CAP_HDR_SIZE) {
4679 BT_ERR("Frame is too short (len %d)", skb->len); 4680 BT_ERR("Frame is too short (len %d)", skb->len);
4680 l2cap_conn_unreliable(conn, ECOMM); 4681 l2cap_conn_unreliable(conn, ECOMM);
4681 goto drop; 4682 goto drop;