Message ID | 20231011051447.92581-1-wangyouwan@126.com |
---|---|
State | Superseded |
Headers | show |
Series | Bluetooth: btusb: Add date->evt_skb is NULL check | expand |
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=792044 ---Test result--- Test Summary: CheckPatch PASS 0.61 seconds GitLint PASS 0.28 seconds SubjectPrefix PASS 0.08 seconds BuildKernel PASS 35.48 seconds CheckAllWarning PASS 38.26 seconds CheckSparse PASS 44.26 seconds CheckSmatch PASS 117.11 seconds BuildKernel32 PASS 34.25 seconds TestRunnerSetup PASS 525.24 seconds TestRunner_l2cap-tester PASS 31.43 seconds TestRunner_iso-tester PASS 55.62 seconds TestRunner_bnep-tester PASS 10.71 seconds TestRunner_mgmt-tester PASS 223.06 seconds TestRunner_rfcomm-tester PASS 16.46 seconds TestRunner_sco-tester PASS 19.86 seconds TestRunner_ioctl-tester PASS 18.50 seconds TestRunner_mesh-tester PASS 15.09 seconds TestRunner_smp-tester PASS 15.11 seconds TestRunner_userchan-tester PASS 11.38 seconds IncrementalBuild PASS 32.91 seconds --- Regards, Linux Bluetooth
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index 3fdad35e5e1d..d793dcd06687 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -2824,6 +2824,9 @@ static int btusb_mtk_hci_wmt_sync(struct hci_dev *hdev, goto err_free_wc; } + if (data->evt_skb == NULL) + goto err_free_wc; + /* Parse and handle the return WMT event */ wmt_evt = (struct btmtk_hci_wmt_evt *)data->evt_skb->data; if (wmt_evt->whdr.op != hdr->op) {