* [PATCH] Fix crash while exiting when endpoint has a a2dp stream
@ 2011-03-23 15:43 Luiz Augusto von Dentz
2011-03-24 9:17 ` Johan Hedberg
0 siblings, 1 reply; 2+ messages in thread
From: Luiz Augusto von Dentz @ 2011-03-23 15:43 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.dentz-von@nokia.com>
After releasing the endpoint should not be used anymore.
---
audio/a2dp.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/audio/a2dp.c b/audio/a2dp.c
index 8595350..88c280a 100644
--- a/audio/a2dp.c
+++ b/audio/a2dp.c
@@ -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);
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-24 9:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-23 15:43 [PATCH] Fix crash while exiting when endpoint has a a2dp stream Luiz Augusto von Dentz
2011-03-24 9:17 ` Johan Hedberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox