Re: [PATCH v3] usb: dwc3: qcom: check for hcd in dwc3_qcom_read_usb2_speed

From: Thinh Nguyen

Date: Tue Nov 03 2026 - 21:17:06 EST


On Thu, Oct 22, 2026, Prashanth K wrote:
> Currently dwc->xhci is not cleared if xhci_plat_probe() fails. During
> system suspend, dwc3_qcom_read_usb2_speed() checks dwc->xhci and assumes
> xhci is initialised. Since the probe failed, hcd will be null, and the
> subsequent access results in a NULL pointer dereference
>
> Unable to handle kernel NULL pointer dereference at
> virtual address 0000000000000058
>
> Call trace:
> dwc3_qcom_pm_suspend
> dpm_run_callback
> device_suspend
> dpm_suspend
> dpm_suspend_start
> suspend_devices_and_enter
> pm_suspend
>
> Explicitly check the hcd pointer in dwc3_qcom_read_usb2_speed
> before accessing it.
>
> Fixes: 6895ea55c385 ("usb: dwc3: qcom: Configure wakeup interrupts during suspend")
> Signed-off-by: Prashanth K <prashanth.k@xxxxxxxxxxxxxxxx>
> ---

Can we add Cc stable?

Acked-by: Thinh Nguyen <Thinh.Nguyen@xxxxxxxxxxxx>

Thanks,
Thinh