Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314411
b: refs/heads/master
c: ee556f6
h: refs/heads/master
i:
  314409: 92fe6bd
  314407: 740a0f8
v: v3
  • Loading branch information
Gustavo Padovan authored and Johan Hedberg committed Jun 5, 2012
1 parent 10f6f82 commit c407f18
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 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: d1de6d46dc7b503d77ec59c849acacadfece1da1
refs/heads/master: ee556f662ca9e96a3cdb0d10745f9fd0cbf549af
14 changes: 12 additions & 2 deletions trunk/net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -549,9 +549,11 @@ static void l2cap_chan_del(struct l2cap_chan *chan, int err)
if (test_bit(CONF_NOT_COMPLETE, &chan->conf_state))
return;

skb_queue_purge(&chan->tx_q);
switch(chan->mode) {
case L2CAP_MODE_BASIC:
break;

if (chan->mode == L2CAP_MODE_ERTM) {
case L2CAP_MODE_ERTM:
__clear_retrans_timer(chan);
__clear_monitor_timer(chan);
__clear_ack_timer(chan);
Expand All @@ -560,7 +562,15 @@ static void l2cap_chan_del(struct l2cap_chan *chan, int err)

l2cap_seq_list_free(&chan->srej_list);
l2cap_seq_list_free(&chan->retrans_list);

/* fall through */

case L2CAP_MODE_STREAMING:
skb_queue_purge(&chan->tx_q);
break;
}

return;
}

static void l2cap_chan_cleanup_listen(struct sock *parent)
Expand Down

0 comments on commit c407f18

Please sign in to comment.