Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 246923
b: refs/heads/master
c: 2ead70b
h: refs/heads/master
i:
  246921: a603af4
  246919: 79da228
v: v3
  • Loading branch information
Gustavo F. Padovan committed Apr 7, 2011
1 parent d2e22d7 commit 78c1ceb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 311bb895e325e5f4d708c1ed2206da8a3885c83a
refs/heads/master: 2ead70b8390d199ca04cd35311b51f5f3676079e
5 changes: 5 additions & 0 deletions trunk/net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,10 @@ void l2cap_chan_del(struct l2cap_chan *chan, int err)
} else
sk->sk_state_change(sk);

if (!(l2cap_pi(sk)->conf_state & L2CAP_CONF_OUTPUT_DONE &&
l2cap_pi(sk)->conf_state & L2CAP_CONF_INPUT_DONE))
goto free;

skb_queue_purge(TX_QUEUE(sk));

if (l2cap_pi(sk)->mode == L2CAP_MODE_ERTM) {
Expand All @@ -254,6 +258,7 @@ void l2cap_chan_del(struct l2cap_chan *chan, int err)
}
}

free:
kfree(chan);
}

Expand Down

0 comments on commit 78c1ceb

Please sign in to comment.