* [PATCH BlueZ v1] bass: add NULL check to bass_bcast_src_free()
@ 2024-06-28 7:35 Roman Smirnov
2024-06-28 9:44 ` [BlueZ,v1] " bluez.test.bot
2024-06-28 15:10 ` [PATCH BlueZ v1] " patchwork-bot+bluetooth
0 siblings, 2 replies; 3+ messages in thread
From: Roman Smirnov @ 2024-06-28 7:35 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Roman Smirnov
Make bass_bcast_src_free() safe for passing NULL pointers.
---
src/shared/bass.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/shared/bass.c b/src/shared/bass.c
index c30537dee..d82c043ac 100644
--- a/src/shared/bass.c
+++ b/src/shared/bass.c
@@ -1272,6 +1272,9 @@ static void bass_bcast_src_free(void *data)
{
struct bt_bcast_src *bcast_src = data;
+ if (!bcast_src)
+ return;
+
for (int i = 0; i < bcast_src->num_subgroups; i++)
free(bcast_src->subgroup_data[i].meta);
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* RE: [BlueZ,v1] bass: add NULL check to bass_bcast_src_free()
2024-06-28 7:35 [PATCH BlueZ v1] bass: add NULL check to bass_bcast_src_free() Roman Smirnov
@ 2024-06-28 9:44 ` bluez.test.bot
2024-06-28 15:10 ` [PATCH BlueZ v1] " patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2024-06-28 9:44 UTC (permalink / raw)
To: linux-bluetooth, r.smirnov
[-- Attachment #1: Type: text/plain, Size: 949 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=866446
---Test result---
Test Summary:
CheckPatch PASS 0.30 seconds
GitLint PASS 0.22 seconds
BuildEll PASS 24.28 seconds
BluezMake PASS 1675.34 seconds
MakeCheck PASS 13.67 seconds
MakeDistcheck PASS 183.04 seconds
CheckValgrind PASS 257.89 seconds
CheckSmatch PASS 360.58 seconds
bluezmakeextell PASS 123.47 seconds
IncrementalBuild PASS 1527.30 seconds
ScanBuild PASS 1038.10 seconds
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH BlueZ v1] bass: add NULL check to bass_bcast_src_free()
2024-06-28 7:35 [PATCH BlueZ v1] bass: add NULL check to bass_bcast_src_free() Roman Smirnov
2024-06-28 9:44 ` [BlueZ,v1] " bluez.test.bot
@ 2024-06-28 15:10 ` patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+bluetooth @ 2024-06-28 15:10 UTC (permalink / raw)
To: Roman Smirnov; +Cc: linux-bluetooth
Hello:
This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Fri, 28 Jun 2024 10:35:41 +0300 you wrote:
> Make bass_bcast_src_free() safe for passing NULL pointers.
> ---
> src/shared/bass.c | 3 +++
> 1 file changed, 3 insertions(+)
Here is the summary with links:
- [BlueZ,v1] bass: add NULL check to bass_bcast_src_free()
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=920c4576907d
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:[~2024-06-28 15:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-28 7:35 [PATCH BlueZ v1] bass: add NULL check to bass_bcast_src_free() Roman Smirnov
2024-06-28 9:44 ` [BlueZ,v1] " bluez.test.bot
2024-06-28 15:10 ` [PATCH BlueZ v1] " 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