Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH 1/2] Do not increment mdl reference in reconnections
@ 2010-11-22  8:10 Santiago Carot-Nemesio
  2010-11-22  8:07 ` [PATCH 2/2] Increment reference counter when a io_watcher is added Jose Antonio Santos Cadenas
  2010-11-22 14:37 ` [PATCH 1/2] Do not increment mdl reference in reconnections Johan Hedberg
  0 siblings, 2 replies; 8+ messages in thread
From: Santiago Carot-Nemesio @ 2010-11-22  8:10 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Santiago Carot-Nemesio

diff --git a/health/hdp.c b/health/hdp.c
index 2e06a6b..769e300 100644
--- a/health/hdp.c
+++ b/health/hdp.c
@@ -921,7 +921,8 @@ static void hdp_mcap_mdl_connected_cb(struct mcap_mdl *mdl, void *data)
 		return;
 
 	chan = dev->ndc;
-	chan->mdl = mcap_mdl_ref(mdl);
+	if (!chan->mdl)
+		chan->mdl = mcap_mdl_ref(mdl);
 
 	if (!g_slist_find(dev->channels, chan))
 		dev->channels = g_slist_prepend(dev->channels,
-- 
1.7.3.2


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

end of thread, other threads:[~2010-11-22 19:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-22  8:10 [PATCH 1/2] Do not increment mdl reference in reconnections Santiago Carot-Nemesio
2010-11-22  8:07 ` [PATCH 2/2] Increment reference counter when a io_watcher is added Jose Antonio Santos Cadenas
2010-11-22 14:43   ` Johan Hedberg
2010-11-22 14:54     ` Jose Antonio Santos Cadenas
2010-11-22 14:55       ` [PATCH 2/2] Fix: increment MDL and MCL reference counter in IO watchers Jose Antonio Santos Cadenas
2010-11-22 17:05         ` Johan Hedberg
2010-11-22 19:14           ` Jose Antonio Santos Cadenas
2010-11-22 14:37 ` [PATCH 1/2] Do not increment mdl reference in reconnections Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox