Skip to content

Commit 4ca50db

Browse files
iulia-tanasescugregkh
authored andcommitted
Bluetooth: iso: Always release hdev at the end of iso_listen_bis
[ Upstream commit 9c76fff ] Since hci_get_route holds the device before returning, the hdev should be released with hci_dev_put at the end of iso_listen_bis even if the function returns with an error. Fixes: 02171da ("Bluetooth: ISO: Add hcon for listening bis sk") Signed-off-by: Iulia Tanasescu <[email protected]> Signed-off-by: Luiz Augusto von Dentz <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent f9ecc90 commit 4ca50db

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

net/bluetooth/iso.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,10 +1158,9 @@ static int iso_listen_bis(struct sock *sk)
11581158
goto unlock;
11591159
}
11601160

1161-
hci_dev_put(hdev);
1162-
11631161
unlock:
11641162
hci_dev_unlock(hdev);
1163+
hci_dev_put(hdev);
11651164
return err;
11661165
}
11671166

0 commit comments

Comments
 (0)