diff options
Diffstat (limited to 'net/bluetooth/l2cap.c')
-rw-r--r-- | net/bluetooth/l2cap.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c index cbaa7409d877..28d2954f94a4 100644 --- a/net/bluetooth/l2cap.c +++ b/net/bluetooth/l2cap.c | |||
@@ -4724,7 +4724,10 @@ static int l2cap_recv_acldata(struct hci_conn *hcon, struct sk_buff *skb, u16 fl | |||
4724 | { | 4724 | { |
4725 | struct l2cap_conn *conn = hcon->l2cap_data; | 4725 | struct l2cap_conn *conn = hcon->l2cap_data; |
4726 | 4726 | ||
4727 | if (!conn && !(conn = l2cap_conn_add(hcon, 0))) | 4727 | if (!conn) |
4728 | conn = l2cap_conn_add(hcon, 0); | ||
4729 | |||
4730 | if (!conn) | ||
4728 | goto drop; | 4731 | goto drop; |
4729 | 4732 | ||
4730 | BT_DBG("conn %p len %d flags 0x%x", conn, skb->len, flags); | 4733 | BT_DBG("conn %p len %d flags 0x%x", conn, skb->len, flags); |