linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [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: avdtp: Free discover when send_request returns error
  2022-06-21  4:31 ` [PATCH BlueZ 1/1] " Chengyi Zhao
@ 2022-06-21  5:59   ` bluez.test.bot
  0 siblings, 0 replies; 4+ messages in thread
From: bluez.test.bot @ 2022-06-21  5:59 UTC (permalink / raw)
  To: linux-bluetooth, zhaochengyi

[-- Attachment #1: Type: text/plain, Size: 995 bytes --]

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=652185

---Test result---

Test Summary:
CheckPatch                    PASS      1.03 seconds
GitLint                       PASS      0.70 seconds
Prep - Setup ELL              PASS      49.02 seconds
Build - Prep                  PASS      0.69 seconds
Build - Configure             PASS      9.57 seconds
Build - Make                  PASS      1701.01 seconds
Make Check                    PASS      11.90 seconds
Make Check w/Valgrind         PASS      510.19 seconds
Make Distcheck                PASS      271.21 seconds
Build w/ext ELL - Configure   PASS      9.61 seconds
Build w/ext ELL - Make        PASS      1674.08 seconds
Incremental Build with patchesPASS      0.00 seconds



---
Regards,
Linux Bluetooth


^ permalink raw reply	[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).