diff options
Diffstat (limited to 'net/bluetooth/l2cap_core.c')
-rw-r--r-- | net/bluetooth/l2cap_core.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index 52b56808d5d3..777c41dbfdbe 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c | |||
@@ -7078,9 +7078,7 @@ int l2cap_chan_connect(struct l2cap_chan *chan, __le16 psm, u16 cid, | |||
7078 | bacpy(&chan->src, &hcon->src); | 7078 | bacpy(&chan->src, &hcon->src); |
7079 | chan->src_type = bdaddr_type(hcon, hcon->src_type); | 7079 | chan->src_type = bdaddr_type(hcon, hcon->src_type); |
7080 | 7080 | ||
7081 | l2cap_chan_unlock(chan); | ||
7082 | l2cap_chan_add(conn, chan); | 7081 | l2cap_chan_add(conn, chan); |
7083 | l2cap_chan_lock(chan); | ||
7084 | 7082 | ||
7085 | /* l2cap_chan_add takes its own ref so we can drop this one */ | 7083 | /* l2cap_chan_add takes its own ref so we can drop this one */ |
7086 | hci_conn_drop(hcon); | 7084 | hci_conn_drop(hcon); |