diff mbox series

Bluetooth: btusb: Add return error code

Message ID 20231018115557.200757-1-youwan@nfschina.com
State Superseded
Headers show
Series Bluetooth: btusb: Add return error code | expand

Commit Message

Youwan Wang Oct. 18, 2023, 11:55 a.m. UTC
From: youwan Wang <youwan@nfschina.com>

Signed-off-by: youwan Wang <youwan@nfschina.com>
Signed-off-by: king <youwan@nfschina.com>
---
 drivers/bluetooth/btusb.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Comments

bluez.test.bot@gmail.com Oct. 18, 2023, 12:46 p.m. UTC | #1
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=794307

---Test result---

Test Summary:
CheckPatch                    PASS      0.68 seconds
GitLint                       PASS      0.33 seconds
SubjectPrefix                 PASS      0.12 seconds
BuildKernel                   PASS      33.48 seconds
CheckAllWarning               PASS      36.46 seconds
CheckSparse                   PASS      42.13 seconds
CheckSmatch                   PASS      116.35 seconds
BuildKernel32                 PASS      32.36 seconds
TestRunnerSetup               PASS      508.66 seconds
TestRunner_l2cap-tester       PASS      29.94 seconds
TestRunner_iso-tester         PASS      61.07 seconds
TestRunner_bnep-tester        PASS      9.88 seconds
TestRunner_mgmt-tester        PASS      209.56 seconds
TestRunner_rfcomm-tester      PASS      15.19 seconds
TestRunner_sco-tester         PASS      18.56 seconds
TestRunner_ioctl-tester       PASS      17.14 seconds
TestRunner_mesh-tester        PASS      12.44 seconds
TestRunner_smp-tester         PASS      13.64 seconds
TestRunner_userchan-tester    PASS      11.88 seconds
IncrementalBuild              PASS      30.88 seconds



---
Regards,
Linux Bluetooth
diff mbox series

Patch

diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index b8e9de887b5d..ec6bdc9687b1 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -2826,8 +2826,10 @@  static int btusb_mtk_hci_wmt_sync(struct hci_dev *hdev,
 		goto err_free_wc;
 	}
 
-	if (data->evt_skb == NULL)
+	if (data->evt_skb == NULL) {
+		err = -ENOBUFS;
 		goto err_free_wc;
+	}
 
 	/* Parse and handle the return WMT event */
 	wmt_evt = (struct btmtk_hci_wmt_evt *)data->evt_skb->data;