Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314464
b: refs/heads/master
c: 3cabbfd
h: refs/heads/master
v: v3
  • Loading branch information
Andrei Emeltchenko authored and Johan Hedberg committed Jun 5, 2012
1 parent ab8be9e commit 515a74f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fd83e2c27c1bd8b0e9dc7596339c2411385f8b0c
refs/heads/master: 3cabbfdad3150e0083a64c951701c970ef970c77
2 changes: 0 additions & 2 deletions trunk/net/bluetooth/a2mp.c
Original file line number Diff line number Diff line change
Expand Up @@ -481,8 +481,6 @@ static struct l2cap_chan *a2mp_chan_open(struct l2cap_conn *conn)

BT_DBG("chan %p", chan);

hci_conn_hold(conn->hcon);

chan->chan_type = L2CAP_CHAN_CONN_FIX_A2MP;
chan->flush_to = L2CAP_DEFAULT_FLUSH_TO;

Expand Down
4 changes: 3 additions & 1 deletion trunk/net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,9 @@ void l2cap_chan_del(struct l2cap_chan *chan, int err)
l2cap_chan_put(chan);

chan->conn = NULL;
hci_conn_put(conn->hcon);

if (chan->chan_type != L2CAP_CHAN_CONN_FIX_A2MP)
hci_conn_put(conn->hcon);
}

if (chan->ops->teardown)
Expand Down

0 comments on commit 515a74f

Please sign in to comment.