linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] gateway_server_remove should unref audio_adapter
@ 2010-06-04  8:19 Zhu Yanhai
  2010-06-04  8:25 ` Zhu Yanhai
  2010-06-04  8:30 ` Johan Hedberg
  0 siblings, 2 replies; 4+ messages in thread
From: Zhu Yanhai @ 2010-06-04  8:19 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Zhu Yanhai

gateway_server_remove should unrefer the adapter, not refer it.

Signed-off-by: Zhu Yanhai <yanhai.zhu@linux.intel.com>
---
 audio/manager.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/audio/manager.c b/audio/manager.c
index 28fd8af..f6a98cd 100644
--- a/audio/manager.c
+++ b/audio/manager.c
@@ -932,7 +932,7 @@ static void gateway_server_remove(struct btd_adapter *adapter)
 		adp->hfp_hs_server = NULL;
 	}
 
-	audio_adapter_ref(adp);
+	audio_adapter_unref(adp);
 }
 
 static int a2dp_server_probe(struct btd_adapter *adapter)
-- 
1.6.2.2


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

end of thread, other threads:[~2010-06-04  8:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-04  8:19 [PATCH] gateway_server_remove should unref audio_adapter Zhu Yanhai
2010-06-04  8:25 ` Zhu Yanhai
2010-06-04  8:30 ` Johan Hedberg
2010-06-04  8:40   ` Zhu Yanhai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).