Re: [PATCH] usb: dwc3: host: Mark dwc->xhci as null if xhci probe fails

From: Greg Kroah-Hartman

Date: Wed Oct 14 2026 - 07:31:30 EST


On Wed, Oct 14, 2026 at 04:27:11PM +0530, Prashanth K wrote:
> Currently dwc->xhci is not cleared when xhci_plat_probe fails,
> leading to null pointer dereference in dwc3_qcom_read_usb2_speed.

Why would that happen? What causes it and requires it?

> Mark the xhci pointer as NULL to prevent this.
>
> Signed-off-by: Prashanth K <prashanth.k@xxxxxxxxxxxxxxxx>

What commit id does this fix?
How was it tested?

thanks,

greg k-h