Skip to content

Commit

Permalink
Bluetooth: Drop L2CAP chan reference if ERTM ack_timer fired
Browse files Browse the repository at this point in the history
Reference counter was incremented when starting ack timer but
decremented only when clearing timer, not when timer fired.

Signed-off-by: Szymon Janc <szymon.janc@tieto.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
  • Loading branch information
Szymon Janc authored and Johan Hedberg committed Feb 13, 2012
1 parent 77f918b commit 09bfb2e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1996,6 +1996,8 @@ static void l2cap_ack_timeout(struct work_struct *work)
lock_sock(chan->sk);
__l2cap_send_ack(chan);
release_sock(chan->sk);

l2cap_chan_put(chan);
}

static inline void l2cap_ertm_init(struct l2cap_chan *chan)
Expand Down

0 comments on commit 09bfb2e

Please sign in to comment.