mbox series

[v2,0/2] Bluetooth: ISO: iso_listen_bis fixes

Message ID 20240305140939.5090-1-iulia.tanasescu@nxp.com
Headers show
Series Bluetooth: ISO: iso_listen_bis fixes | expand

Message

Iulia Tanasescu March 5, 2024, 2:09 p.m. UTC
This patch adds some fixes for the iso_listen_bis function:

The first commit fixes the circular locking dependency warning
caused by iso_listen_bis attempting to lock the hdev while the
socket is locked from the caller function.

The second commit fixes the fact that hci_dev_put is only called
if iso_listen_bis returns successfully. Otherwise, the hdev will
still be held from hci_get_route.

Iulia Tanasescu (2):
  Bluetooth: ISO: Fix circular locking dependency warning
  Bluetooth: ISO: Always release hdev at the end of iso_listen_bis

 net/bluetooth/iso.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)