* [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
* Re: [PATCH] gateway_server_remove should unref audio_adapter
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
1 sibling, 0 replies; 4+ messages in thread
From: Zhu Yanhai @ 2010-06-04 8:25 UTC (permalink / raw)
To: Zhu Yanhai; +Cc: linux-bluetooth
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@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)
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] gateway_server_remove should unref audio_adapter
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
1 sibling, 1 reply; 4+ messages in thread
From: Johan Hedberg @ 2010-06-04 8:30 UTC (permalink / raw)
To: Zhu Yanhai; +Cc: linux-bluetooth
Hi,
On Fri, Jun 04, 2010, Zhu Yanhai wrote:
> gateway_server_remove should unrefer the adapter, not refer it.
>
> Signed-off-by: Zhu Yanhai <yanhai.zhu@linux.intel.com>
We don't use Signed-off-by in userspace BlueZ. I fixed it manually for
you this time. Also try to start the summary line with "Fix ..." for any
bugfixes (take a look at the upstream git how I changed it). With those
commit message changes the patch has now been pushed upstream.
Johan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] gateway_server_remove should unref audio_adapter
2010-06-04 8:30 ` Johan Hedberg
@ 2010-06-04 8:40 ` Zhu Yanhai
0 siblings, 0 replies; 4+ messages in thread
From: Zhu Yanhai @ 2010-06-04 8:40 UTC (permalink / raw)
To: linux-bluetooth
On 06/04/2010 04:30 PM, Johan Hedberg wrote:
> Hi,
>
> On Fri, Jun 04, 2010, Zhu Yanhai wrote:
>> gateway_server_remove should unrefer the adapter, not refer it.
>>
>> Signed-off-by: Zhu Yanhai<yanhai.zhu@linux.intel.com>
>
> We don't use Signed-off-by in userspace BlueZ. I fixed it manually for
> you this time. Also try to start the summary line with "Fix ..." for any
> bugfixes (take a look at the upstream git how I changed it). With those
> commit message changes the patch has now been pushed upstream.
>
> Johan
>
Thank you Johan! I promise I will follow these next time :)
Regards,
Zhu Yanhai
^ permalink raw reply [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).