All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: Bluetooth: virtio_bt: fix memory leak in virtbt_probe
  2026-07-09  1:57 [PATCH] Bluetooth: virtio_bt: fix " Zhao Dongdong
@ 2026-07-09  5:34 ` bluez.test.bot
  0 siblings, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2026-07-09  5:34 UTC (permalink / raw)
  To: linux-bluetooth, winter91

[-- Attachment #1: Type: text/plain, Size: 1181 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=1124217

---Test result---

Test Summary:
CheckPatch                    PASS      0.43 seconds
VerifyFixes                   PASS      0.08 seconds
VerifySignedoff               PASS      0.08 seconds
GitLint                       PASS      0.19 seconds
SubjectPrefix                 PASS      0.07 seconds
BuildKernel                   PASS      15.57 seconds
CheckAllWarning               PASS      17.02 seconds
CheckSparse                   PASS      16.10 seconds
BuildKernel32                 PASS      14.94 seconds
CheckKernelLLVM               SKIP      0.00 seconds
TestRunnerSetup               PASS      277.51 seconds
IncrementalBuild              PASS      15.00 seconds

Details
##############################
Test: CheckKernelLLVM - SKIP
Desc: Build kernel with LLVM + context analysis
Output:
Clang not found


https://github.com/bluez/bluetooth-next/pull/412

---
Regards,
Linux Bluetooth


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] Bluetooth: virtio_bt: Fix memory leak in virtbt_probe
@ 2026-07-29  8:26 zhangchen200426
  2026-07-29 10:30 ` bluez.test.bot
  0 siblings, 1 reply; 3+ messages in thread
From: zhangchen200426 @ 2026-07-29  8:26 UTC (permalink / raw)
  To: luiz.von.dentz, michael.bommarito, kees; +Cc: linux-bluetooth, Chen Zhang

From: Chen Zhang <zhangchen01@kylinos.cn>

In virtbt_probe, if virtio_find_vqs fails, it will return
directly, causing a memory leak in vbt.

Signed-off-by: Chen Zhang <zhangchen01@kylinos.cn>
---
 drivers/bluetooth/virtio_bt.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/bluetooth/virtio_bt.c b/drivers/bluetooth/virtio_bt.c
index 140ab55c9fc5..5ca163f8ea70 100644
--- a/drivers/bluetooth/virtio_bt.c
+++ b/drivers/bluetooth/virtio_bt.c
@@ -311,7 +311,7 @@ static int virtbt_probe(struct virtio_device *vdev)
 
 	err = virtio_find_vqs(vdev, VIRTBT_NUM_VQS, vbt->vqs, vqs_info, NULL);
 	if (err)
-		return err;
+		goto alloc_vqs_failed;
 
 	hdev = hci_alloc_dev();
 	if (!hdev) {
@@ -400,6 +400,8 @@ static int virtbt_probe(struct virtio_device *vdev)
 	hci_free_dev(hdev);
 failed:
 	vdev->config->del_vqs(vdev);
+alloc_vqs_failed:
+	kfree(vbt);
 	return err;
 }
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* RE: Bluetooth: virtio_bt: Fix memory leak in virtbt_probe
  2026-07-29  8:26 [PATCH] Bluetooth: virtio_bt: Fix memory leak in virtbt_probe zhangchen200426
@ 2026-07-29 10:30 ` bluez.test.bot
  0 siblings, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2026-07-29 10:30 UTC (permalink / raw)
  To: linux-bluetooth, zhangchen200426

[-- Attachment #1: Type: text/plain, Size: 1181 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=1136470

---Test result---

Test Summary:
CheckPatch                    PASS      0.73 seconds
VerifyFixes                   PASS      0.13 seconds
VerifySignedoff               PASS      0.13 seconds
GitLint                       PASS      0.33 seconds
SubjectPrefix                 PASS      0.13 seconds
BuildKernel                   PASS      25.93 seconds
CheckAllWarning               PASS      28.56 seconds
CheckSparse                   PASS      27.04 seconds
BuildKernel32                 PASS      25.13 seconds
CheckKernelLLVM               SKIP      0.00 seconds
TestRunnerSetup               PASS      464.28 seconds
IncrementalBuild              PASS      26.13 seconds

Details
##############################
Test: CheckKernelLLVM - SKIP
Desc: Build kernel with LLVM + context analysis
Output:
Clang not found


https://github.com/bluez/bluetooth-next/pull/507

---
Regards,
Linux Bluetooth


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-07-29 10:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-29  8:26 [PATCH] Bluetooth: virtio_bt: Fix memory leak in virtbt_probe zhangchen200426
2026-07-29 10:30 ` bluez.test.bot
  -- strict thread matches above, loose matches on Subject: below --
2026-07-09  1:57 [PATCH] Bluetooth: virtio_bt: fix " Zhao Dongdong
2026-07-09  5:34 ` bluez.test.bot

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.