* [PATCH] Bluetooth: use memset avoid memory leaks
@ 2025-11-07 2:21 Gongwei Li
2025-11-07 3:13 ` bluez.test.bot
0 siblings, 1 reply; 2+ messages in thread
From: Gongwei Li @ 2025-11-07 2:21 UTC (permalink / raw)
To: marcel; +Cc: johan.hedberg, luiz.dentz, linux-bluetooth, linux-kernel,
Gongwei Li
From: Gongwei Li <ligongwei@kylinos.cn>
Similar to the handling of l2cap_le_connect in commit a5133fe87ed8
("Bluetooth: use memset avoid memory leaks"), we thought a patch
might be needed here as well.
Use memset to initialize structs to prevent memory leaks
in __l2cap_le_connect_rsp_defer.
Signed-off-by: Gongwei Li <ligongwei@kylinos.cn>
---
net/bluetooth/l2cap_core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index d08320380..b987ba5de 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -3786,6 +3786,7 @@ void __l2cap_le_connect_rsp_defer(struct l2cap_chan *chan)
BT_DBG("chan %p", chan);
+ memset(&rsp, 0, sizeof(rsp));
rsp.dcid = cpu_to_le16(chan->scid);
rsp.mtu = cpu_to_le16(chan->imtu);
rsp.mps = cpu_to_le16(chan->mps);
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* RE: Bluetooth: use memset avoid memory leaks
2025-11-07 2:21 [PATCH] Bluetooth: use memset avoid memory leaks Gongwei Li
@ 2025-11-07 3:13 ` bluez.test.bot
0 siblings, 0 replies; 2+ messages in thread
From: bluez.test.bot @ 2025-11-07 3:13 UTC (permalink / raw)
To: linux-bluetooth, 13875017792
[-- Attachment #1: Type: text/plain, Size: 2376 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=1020713
---Test result---
Test Summary:
CheckPatch PENDING 0.35 seconds
GitLint PENDING 0.32 seconds
SubjectPrefix PASS 0.06 seconds
BuildKernel PASS 24.97 seconds
CheckAllWarning PASS 26.99 seconds
CheckSparse PASS 30.71 seconds
BuildKernel32 PASS 24.37 seconds
TestRunnerSetup PASS 492.94 seconds
TestRunner_l2cap-tester PASS 23.54 seconds
TestRunner_iso-tester PASS 65.55 seconds
TestRunner_bnep-tester PASS 6.01 seconds
TestRunner_mgmt-tester FAIL 108.37 seconds
TestRunner_rfcomm-tester PASS 9.05 seconds
TestRunner_sco-tester PASS 14.11 seconds
TestRunner_ioctl-tester PASS 9.68 seconds
TestRunner_mesh-tester FAIL 11.46 seconds
TestRunner_smp-tester PASS 8.25 seconds
TestRunner_userchan-tester PASS 6.41 seconds
IncrementalBuild PENDING 0.61 seconds
Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:
##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:
##############################
Test: TestRunner_mgmt-tester - FAIL
Desc: Run mgmt-tester with test-runner
Output:
Total: 492, Passed: 486 (98.8%), Failed: 2, Not Run: 4
Failed Test Cases
Read Exp Feature - Success Failed 0.097 seconds
LL Privacy - Set Flags 2 (Enable RL) Failed 0.149 seconds
##############################
Test: TestRunner_mesh-tester - FAIL
Desc: Run mesh-tester with test-runner
Output:
Total: 10, Passed: 8 (80.0%), Failed: 2, Not Run: 0
Failed Test Cases
Mesh - Send cancel - 1 Timed out 2.189 seconds
Mesh - Send cancel - 2 Timed out 1.996 seconds
##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series
Output:
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-11-07 3:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-07 2:21 [PATCH] Bluetooth: use memset avoid memory leaks Gongwei Li
2025-11-07 3:13 ` bluez.test.bot
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).