|
@@ -7078,9 +7078,7 @@ int l2cap_chan_connect(struct l2cap_chan *chan, __le16 psm, u16 cid,
|
|
bacpy(&chan->src, &hcon->src);
|
|
bacpy(&chan->src, &hcon->src);
|
|
chan->src_type = bdaddr_type(hcon, hcon->src_type);
|
|
chan->src_type = bdaddr_type(hcon, hcon->src_type);
|
|
|
|
|
|
- l2cap_chan_unlock(chan);
|
|
|
|
l2cap_chan_add(conn, chan);
|
|
l2cap_chan_add(conn, chan);
|
|
- l2cap_chan_lock(chan);
|
|
|
|
|
|
|
|
/* l2cap_chan_add takes its own ref so we can drop this one */
|
|
/* l2cap_chan_add takes its own ref so we can drop this one */
|
|
hci_conn_drop(hcon);
|
|
hci_conn_drop(hcon);
|