* [PATCH BlueZ 0/1] avdtp: Free discover when send_request returns error
@ 2022-06-21 4:31 Chengyi Zhao
2022-06-21 4:31 ` [PATCH BlueZ 1/1] " Chengyi Zhao
2022-06-21 20:20 ` [PATCH BlueZ 0/1] " patchwork-bot+bluetooth
0 siblings, 2 replies; 4+ messages in thread
From: Chengyi Zhao @ 2022-06-21 4:31 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Chengyi Zhao
When send_request returns an error, session->discover should
be released here, so that the next time the program enters
avdtp_discover, the -EBUSY error will not be returned.
Chengyi (1):
avdtp: Free discover when send_request returns error
profiles/audio/avdtp.c | 3 +++
1 file changed, 3 insertions(+)
--
2.20.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH BlueZ 1/1] avdtp: Free discover when send_request returns error
2022-06-21 4:31 [PATCH BlueZ 0/1] avdtp: Free discover when send_request returns error Chengyi Zhao
@ 2022-06-21 4:31 ` Chengyi Zhao
2022-06-21 5:59 ` bluez.test.bot
2022-06-21 20:20 ` [PATCH BlueZ 0/1] " patchwork-bot+bluetooth
1 sibling, 1 reply; 4+ messages in thread
From: Chengyi Zhao @ 2022-06-21 4:31 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Chengyi
From: Chengyi <zhaochengyi@uniontech.com>
When send_request returns an error, session->discover should
be released here, so that the next time the program enters
avdtp_discover, the -EBUSY error will not be returned.
---
profiles/audio/avdtp.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/profiles/audio/avdtp.c b/profiles/audio/avdtp.c
index bc7afad81..0d2213ea2 100644
--- a/profiles/audio/avdtp.c
+++ b/profiles/audio/avdtp.c
@@ -3429,6 +3429,9 @@ int avdtp_discover(struct avdtp *session, avdtp_discover_cb_t cb,
if (err == 0) {
session->discover->cb = cb;
session->discover->user_data = user_data;
+ } else if (session->discover) {
+ g_free(session->discover);
+ session->discover = NULL;
}
return err;
--
2.20.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH BlueZ 0/1] avdtp: Free discover when send_request returns error
2022-06-21 4:31 [PATCH BlueZ 0/1] avdtp: Free discover when send_request returns error Chengyi Zhao
2022-06-21 4:31 ` [PATCH BlueZ 1/1] " Chengyi Zhao
@ 2022-06-21 20:20 ` patchwork-bot+bluetooth
1 sibling, 0 replies; 4+ messages in thread
From: patchwork-bot+bluetooth @ 2022-06-21 20:20 UTC (permalink / raw)
To: Chengyi Zhao; +Cc: linux-bluetooth
Hello:
This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Tue, 21 Jun 2022 12:31:32 +0800 you wrote:
> When send_request returns an error, session->discover should
> be released here, so that the next time the program enters
> avdtp_discover, the -EBUSY error will not be returned.
>
> Chengyi (1):
> avdtp: Free discover when send_request returns error
>
> [...]
Here is the summary with links:
- [BlueZ,1/1] avdtp: Free discover when send_request returns error
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=949898cc5e7f
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-06-21 20:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-21 4:31 [PATCH BlueZ 0/1] avdtp: Free discover when send_request returns error Chengyi Zhao
2022-06-21 4:31 ` [PATCH BlueZ 1/1] " Chengyi Zhao
2022-06-21 5:59 ` bluez.test.bot
2022-06-21 20:20 ` [PATCH BlueZ 0/1] " patchwork-bot+bluetooth
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).