Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 09bfb2ee authored by Szymon Janc's avatar Szymon Janc Committed by Johan Hedberg
Browse files

Bluetooth: Drop L2CAP chan reference if ERTM ack_timer fired



Reference counter was incremented when starting ack timer but
decremented only when clearing timer, not when timer fired.

Signed-off-by: default avatarSzymon Janc <szymon.janc@tieto.com>
Acked-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
parent 77f918bc
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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)