Commit 7e7df2c1 authored by Wang ShaoBo's avatar Wang ShaoBo Committed by Luiz Augusto von Dentz
Browse files

Bluetooth: hci_conn: add missing hci_dev_put() in iso_listen_bis()



hci_get_route() takes reference, we should use hci_dev_put() to release
it when not need anymore.

Fixes: f764a6c2 ("Bluetooth: ISO: Add broadcast support")
Signed-off-by: default avatarWang ShaoBo <bobo.shaobowang@huawei.com>
Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
parent 747da130
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
}