Skip to contentSkip to conversation

Fix crash while exiting when endpoint has a a2dp stream

PATCH In review Luiz Augusto von Dentz 2 participants 2 messages Mar 23, 2011 – Mar 24, 2011 Bluetooth drivers

lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 1/1 Fix crash while exiting when endpoint has a a2dp stream

From: Luiz Augusto von Dentz <[email protected]>

After releasing the endpoint should not be used anymore.

---
 audio/a2dp.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
audio/a2dp.c +3 -1
index 8595350..88c280a 100644
@@ -1517,8 +1517,10 @@ proceed:
 
 static void a2dp_unregister_sep(struct a2dp_sep *sep)
 {
-	if (sep->endpoint)
+	if (sep->endpoint) {
 		media_endpoint_release(sep->endpoint);
+		sep->endpoint = NULL;
+	}
 
 	avdtp_unregister_sep(sep->lsep);
 	g_free(sep);
Signature · 1 line
1.7.1
#1 lore raw

Hi Luiz,

Quoted 4 lines · Luiz Augusto von Dentz

After releasing the endpoint should not be used anymore.

---
 audio/a2dp.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

This one has also been pushed upstream. Thanks.

Johan