Skip to contentSkip to conversation

Bluetooth: btusb: Add return error code

PATCH In review Youwan Wang 2 participants 2 messages Oct 20, 2023 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 Bluetooth: btusb: Add return error code

Add return error code

---
 drivers/bluetooth/btusb.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/bluetooth/btusb.c +3 -1
index b8e9de887b5d..ec6bdc9687b1 100644
@@ -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;
Signature · 1 line
2.25.1
#1 lore raw

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=794918

---Test result---

Test Summary:

CheckPatch                    PASS      0.67 seconds
GitLint                       PASS      0.33 seconds
SubjectPrefix                 PASS      0.12 seconds
BuildKernel                   PASS      32.83 seconds
CheckAllWarning               PASS      36.11 seconds
CheckSparse                   PASS      41.57 seconds
CheckSmatch                   PASS      116.80 seconds
BuildKernel32                 PASS      32.08 seconds
TestRunnerSetup               PASS      501.45 seconds
TestRunner_l2cap-tester       PASS      29.55 seconds
TestRunner_iso-tester         PASS      59.66 seconds
TestRunner_bnep-tester        PASS      9.77 seconds
TestRunner_mgmt-tester        PASS      208.71 seconds
TestRunner_rfcomm-tester      PASS      14.90 seconds
TestRunner_sco-tester         PASS      18.37 seconds
TestRunner_ioctl-tester       PASS      16.84 seconds
TestRunner_mesh-tester        PASS      12.43 seconds
TestRunner_smp-tester         PASS      13.29 seconds
TestRunner_userchan-tester    PASS      10.30 seconds
IncrementalBuild              PASS      30.49 seconds

---
Regards,
Linux Bluetooth