On 06/04/2010 04:19 PM, Zhu Yanhai wrote:
gateway_server_remove should unrefer the adapter, not refer it. Signed-off-by: Zhu Yanhai<yanhai.zhu@xxxxxxxxxxxxxxx> --- 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)
The current BlueZ 4.65 can't register itself on DBUS after system resume, as the interface org.bluez.Adapter wasn't unregistered during system suspend due to the non-zero ref numbers.
Regards, Zhu Yanhai -- 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