aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/l2cap.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/bluetooth/l2cap.c')
-rw-r--r--net/bluetooth/l2cap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c
index 4c7b2d22faa5..2f9bbad42887 100644
--- a/net/bluetooth/l2cap.c
+++ b/net/bluetooth/l2cap.c
@@ -1568,6 +1568,9 @@ static struct sk_buff *l2cap_create_iframe_pdu(struct sock *sk, struct msghdr *m
1568 1568
1569 BT_DBG("sk %p len %d", sk, (int)len); 1569 BT_DBG("sk %p len %d", sk, (int)len);
1570 1570
1571 if (!conn)
1572 return ERR_PTR(-ENOTCONN);
1573
1571 if (sdulen) 1574 if (sdulen)
1572 hlen += 2; 1575 hlen += 2;
1573 1576