* [PATCH BlueZ] avdtp: fix not adding stream to global streams list
@ 2025-07-10 10:08 Pauli Virtanen
2025-07-10 11:51 ` [BlueZ] " bluez.test.bot
2025-07-10 15:09 ` [PATCH BlueZ] " patchwork-bot+bluetooth
0 siblings, 2 replies; 3+ messages in thread
From: Pauli Virtanen @ 2025-07-10 10:08 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Pauli Virtanen
stream_new() shall be used to create new avdtp_stream, so that they can
be found from global list.
Fix one case where it was not used. Fixes crash when unregistering lsep
and then disconnecting, due to stream for the removed lsep not being
cleaned up when SEP is freed.
Fixes: https://github.com/bluez/bluez/issues/1325
---
profiles/audio/avdtp.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/profiles/audio/avdtp.c b/profiles/audio/avdtp.c
index 17671a1ba..b849896a9 100644
--- a/profiles/audio/avdtp.c
+++ b/profiles/audio/avdtp.c
@@ -3575,10 +3575,7 @@ int avdtp_set_configuration(struct avdtp *session,
DBG("%p: int_seid=%u, acp_seid=%u", session,
lsep->info.seid, rsep->seid);
- new_stream = g_new0(struct avdtp_stream, 1);
- new_stream->session = session;
- new_stream->lsep = lsep;
- new_stream->rseid = rsep->seid;
+ new_stream = stream_new(session, lsep, rsep->seid);
if (rsep->delay_reporting && lsep->delay_reporting) {
struct avdtp_service_capability *delay_reporting;
--
2.50.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [BlueZ] avdtp: fix not adding stream to global streams list
2025-07-10 10:08 [PATCH BlueZ] avdtp: fix not adding stream to global streams list Pauli Virtanen
@ 2025-07-10 11:51 ` bluez.test.bot
2025-07-10 15:09 ` [PATCH BlueZ] " patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2025-07-10 11:51 UTC (permalink / raw)
To: linux-bluetooth, pav
[-- Attachment #1: Type: text/plain, Size: 1261 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=980952
---Test result---
Test Summary:
CheckPatch PENDING 0.27 seconds
GitLint PENDING 0.24 seconds
BuildEll PASS 20.05 seconds
BluezMake PASS 2606.23 seconds
MakeCheck PASS 19.77 seconds
MakeDistcheck PASS 185.48 seconds
CheckValgrind PASS 234.51 seconds
CheckSmatch PASS 304.25 seconds
bluezmakeextell PASS 127.46 seconds
IncrementalBuild PENDING 0.25 seconds
ScanBuild PASS 906.75 seconds
Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:
##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:
##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series
Output:
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH BlueZ] avdtp: fix not adding stream to global streams list
2025-07-10 10:08 [PATCH BlueZ] avdtp: fix not adding stream to global streams list Pauli Virtanen
2025-07-10 11:51 ` [BlueZ] " bluez.test.bot
@ 2025-07-10 15:09 ` patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+bluetooth @ 2025-07-10 15:09 UTC (permalink / raw)
To: Pauli Virtanen; +Cc: linux-bluetooth
Hello:
This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Thu, 10 Jul 2025 13:08:54 +0300 you wrote:
> stream_new() shall be used to create new avdtp_stream, so that they can
> be found from global list.
>
> Fix one case where it was not used. Fixes crash when unregistering lsep
> and then disconnecting, due to stream for the removed lsep not being
> cleaned up when SEP is freed.
>
> [...]
Here is the summary with links:
- [BlueZ] avdtp: fix not adding stream to global streams list
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=47a4c73cd553
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] 3+ messages in thread
end of thread, other threads:[~2025-07-10 15:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-10 10:08 [PATCH BlueZ] avdtp: fix not adding stream to global streams list Pauli Virtanen
2025-07-10 11:51 ` [BlueZ] " bluez.test.bot
2025-07-10 15:09 ` [PATCH BlueZ] " patchwork-bot+bluetooth
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.