Skip to content

Commit

Permalink
Bluetooth: hci_conn: add missing hci_dev_put() in iso_listen_bis()
Browse files Browse the repository at this point in the history
hci_get_route() takes reference, we should use hci_dev_put() to release
it when not need anymore.

Fixes: f764a6c ("Bluetooth: ISO: Add broadcast support")
Signed-off-by: Wang ShaoBo <[email protected]>
Signed-off-by: Luiz Augusto von Dentz <[email protected]>
  • Loading branch information
Wang ShaoBo authored and Vudentz committed Dec 2, 2022
1 parent 747da13 commit 7e7df2c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/bluetooth/iso.c
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,7 @@ static int iso_listen_bis(struct sock *sk)
iso_pi(sk)->bc_sid);

hci_dev_unlock(hdev);
hci_dev_put(hdev);

return err;
}
Expand Down

0 comments on commit 7e7df2c

Please sign in to comment.