2023-10-18 09:54:00

by Youwan Wang

[permalink] [raw]
Subject: [PATCH] Bluetooth:btusb: Add return error code

From: youwan Wang <[email protected]>

Add return error code

Signed-off-by: youwan Wang <[email protected]>
---
drivers/bluetooth/btusb.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

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;
--
2.25.1


2023-10-18 10:38:21

by bluez.test.bot

[permalink] [raw]
Subject: RE: Bluetooth:btusb: Add return error code

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

---Test result---

Test Summary:
CheckPatch PASS 0.57 seconds
GitLint PASS 0.26 seconds
SubjectPrefix FAIL 0.38 seconds
BuildKernel PASS 33.08 seconds
CheckAllWarning PASS 36.38 seconds
CheckSparse PASS 41.59 seconds
CheckSmatch PASS 116.34 seconds
BuildKernel32 PASS 32.02 seconds
TestRunnerSetup PASS 504.10 seconds
TestRunner_l2cap-tester PASS 29.29 seconds
TestRunner_iso-tester PASS 57.68 seconds
TestRunner_bnep-tester PASS 9.58 seconds
TestRunner_mgmt-tester PASS 210.80 seconds
TestRunner_rfcomm-tester PASS 15.03 seconds
TestRunner_sco-tester PASS 18.49 seconds
TestRunner_ioctl-tester PASS 17.02 seconds
TestRunner_mesh-tester PASS 12.45 seconds
TestRunner_smp-tester PASS 13.36 seconds
TestRunner_userchan-tester PASS 10.16 seconds
IncrementalBuild PASS 31.06 seconds

Details
##############################
Test: SubjectPrefix - FAIL
Desc: Check subject contains "Bluetooth" prefix
Output:
"Bluetooth: " prefix is not specified in the subject


---
Regards,
Linux Bluetooth