All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ 1/4] shared/bap: Fix not unregistering idle callback on detach
@ 2023-03-13 22:51 Luiz Augusto von Dentz
  2023-03-13 22:51 ` [PATCH BlueZ 2/4] shared/csip: " Luiz Augusto von Dentz
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Luiz Augusto von Dentz @ 2023-03-13 22:51 UTC (permalink / raw)
  To: linux-bluetooth

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

This make sure idle callback is unregistered before bt_gatt_client is
unref.
---
 src/shared/bap.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/shared/bap.c b/src/shared/bap.c
index 952b7be260ab..7a53fbc3e91c 100644
--- a/src/shared/bap.c
+++ b/src/shared/bap.c
@@ -3818,6 +3818,8 @@ void bt_bap_detach(struct bt_bap *bap)
 		bap->req = NULL;
 	}
 
+	bt_gatt_client_idle_unregister(bap->client, bap->idle_id);
+
 	/* Cancel queued requests */
 	queue_remove_all(bap->reqs, NULL, NULL, bap_req_detach);
 
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-03-14 19:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-13 22:51 [PATCH BlueZ 1/4] shared/bap: Fix not unregistering idle callback on detach Luiz Augusto von Dentz
2023-03-13 22:51 ` [PATCH BlueZ 2/4] shared/csip: " Luiz Augusto von Dentz
2023-03-13 22:51 ` [PATCH BlueZ 3/4] shared/gatt-client: Introduce bt_gatt_client_ref_safe Luiz Augusto von Dentz
2023-03-13 22:51 ` [PATCH BlueZ 4/4] shared/csip: Fix crash on bt_csip_get_sirk Luiz Augusto von Dentz
2023-03-14  0:48 ` [BlueZ,1/4] shared/bap: Fix not unregistering idle callback on detach bluez.test.bot
2023-03-14 19:40 ` [PATCH BlueZ 1/4] " patchwork-bot+bluetooth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.