From: Gustavo F. Padovan Date: Thu, 14 Apr 2011 20:57:26 +0000 (-0300) Subject: Bluetooth: Fix lockdep warning in L2CAP X-Git-Tag: v3.0-rc2~7^2~16^2~94^2~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=26954c7f26068b6ced108806fdd39aee5cd54e6f;p=platform%2Fkernel%2Flinux-exynos.git Bluetooth: Fix lockdep warning in L2CAP Fix a regression from the L2CAP "rewrite" patches. Purge the tx_q already happens on l2cap_chan_del() so we don't need it at l2cap_disconnect_req(). Signed-off-by: Gustavo F. Padovan --- diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index bc84ed1..d47de2b 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c @@ -477,8 +477,6 @@ void l2cap_send_disconn_req(struct l2cap_conn *conn, struct l2cap_chan *chan, in sk = chan->sk; - skb_queue_purge(&chan->tx_q); - if (l2cap_pi(sk)->mode == L2CAP_MODE_ERTM) { del_timer(&chan->retrans_timer); del_timer(&chan->monitor_timer);