* [v2] Bluetooth: btusb: Add return ENOBUFS error code
@ 2024-03-13 7:36 Youwan Wang
2024-03-13 8:34 ` bluez.test.bot
0 siblings, 1 reply; 2+ messages in thread
From: Youwan Wang @ 2024-03-13 7:36 UTC (permalink / raw)
To: marcel; +Cc: johan.hedberg, luiz.dentz, linux-bluetooth, Youwan Wang
Convenient to check if the function was executed successfully
and know the specific error location in the code.
Signed-off-by: Youwan Wang <youwan@nfschina.com>
---
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 d793dcd06687..a7244a8a5b7c 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -2824,8 +2824,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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* RE: [v2] Bluetooth: btusb: Add return ENOBUFS error code
2024-03-13 7:36 [v2] Bluetooth: btusb: Add return ENOBUFS error code Youwan Wang
@ 2024-03-13 8:34 ` bluez.test.bot
0 siblings, 0 replies; 2+ messages in thread
From: bluez.test.bot @ 2024-03-13 8:34 UTC (permalink / raw)
To: linux-bluetooth, youwan
[-- Attachment #1: Type: text/plain, Size: 1696 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=834872
---Test result---
Test Summary:
CheckPatch PASS 0.65 seconds
GitLint PASS 0.33 seconds
SubjectPrefix PASS 0.12 seconds
BuildKernel PASS 28.33 seconds
CheckAllWarning PASS 31.83 seconds
CheckSparse PASS 37.19 seconds
CheckSmatch PASS 99.58 seconds
BuildKernel32 PASS 27.54 seconds
TestRunnerSetup PASS 523.79 seconds
TestRunner_l2cap-tester PASS 17.96 seconds
TestRunner_iso-tester PASS 28.12 seconds
TestRunner_bnep-tester PASS 4.82 seconds
TestRunner_mgmt-tester FAIL 112.34 seconds
TestRunner_rfcomm-tester PASS 7.40 seconds
TestRunner_sco-tester PASS 14.98 seconds
TestRunner_ioctl-tester PASS 7.81 seconds
TestRunner_mesh-tester PASS 5.91 seconds
TestRunner_smp-tester PASS 6.89 seconds
TestRunner_userchan-tester PASS 4.99 seconds
IncrementalBuild PASS 26.40 seconds
Details
##############################
Test: TestRunner_mgmt-tester - FAIL
Desc: Run mgmt-tester with test-runner
Output:
Total: 492, Passed: 489 (99.4%), Failed: 1, Not Run: 2
Failed Test Cases
LL Privacy - Remove Device 4 (Disable Adv) Timed out 2.098 seconds
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-03-13 8:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-13 7:36 [v2] Bluetooth: btusb: Add return ENOBUFS error code Youwan Wang
2024-03-13 8: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.