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 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html