Message ID | 1710912504-25416-1-git-send-email-quic_zijuhu@quicinc.com |
---|---|
State | Superseded |
Headers | show |
Series | [v3] Bluetooth: qca: Fix crash when use tool btattach for QCA_ROME | 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=836616 ---Test result--- Test Summary: CheckPatch PASS 0.49 seconds GitLint PASS 0.20 seconds SubjectPrefix PASS 0.06 seconds BuildKernel PASS 28.36 seconds CheckAllWarning PASS 31.58 seconds CheckSparse PASS 36.95 seconds CheckSmatch PASS 100.70 seconds BuildKernel32 PASS 28.57 seconds TestRunnerSetup PASS 527.24 seconds TestRunner_l2cap-tester PASS 20.46 seconds TestRunner_iso-tester PASS 32.89 seconds TestRunner_bnep-tester PASS 4.78 seconds TestRunner_mgmt-tester PASS 117.13 seconds TestRunner_rfcomm-tester PASS 7.24 seconds TestRunner_sco-tester PASS 15.00 seconds TestRunner_ioctl-tester PASS 7.67 seconds TestRunner_mesh-tester PASS 5.86 seconds TestRunner_smp-tester PASS 6.77 seconds TestRunner_userchan-tester PASS 4.92 seconds IncrementalBuild PASS 27.03 seconds --- Regards, Linux Bluetooth
diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c index 8a60ad7acd70..24d45c5c47ad 100644 --- a/drivers/bluetooth/hci_qca.c +++ b/drivers/bluetooth/hci_qca.c @@ -1961,7 +1961,7 @@ static int qca_setup(struct hci_uart *hu) qca_debugfs_init(hdev); hu->hdev->hw_error = qca_hw_error; hu->hdev->cmd_timeout = qca_cmd_timeout; - if (device_can_wakeup(hu->serdev->ctrl->dev.parent)) + if (hu->serdev && device_can_wakeup(hu->serdev->ctrl->dev.parent)) hu->hdev->wakeup = qca_wakeup; } else if (ret == -ENOENT) { /* No patch/nvm-config found, run with original fw/config */