mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 11:16:11 +00:00
Bluetooth: Fix L2CAP locking scheme regression
When locking was introduced the error path branch was not taken into account. Error was found in sparse code checking. Kudos to Jani Nikula. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@nokia.com> Acked-by: Gustavo F. Padovan <gustavo@las.ic.unicamp.br> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
parent
186ee8cf01
commit
b13f586044
1 changed files with 1 additions and 0 deletions
|
@ -1212,6 +1212,7 @@ static void l2cap_monitor_timeout(unsigned long arg)
|
||||||
bh_lock_sock(sk);
|
bh_lock_sock(sk);
|
||||||
if (l2cap_pi(sk)->retry_count >= l2cap_pi(sk)->remote_max_tx) {
|
if (l2cap_pi(sk)->retry_count >= l2cap_pi(sk)->remote_max_tx) {
|
||||||
l2cap_send_disconn_req(l2cap_pi(sk)->conn, sk);
|
l2cap_send_disconn_req(l2cap_pi(sk)->conn, sk);
|
||||||
|
bh_unlock_sock(sk);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue