Re: [PATCH] usb: cdns3: fix a null pointer dereference in cdns3_gadget_ep_queue()

From: Greg KH
Date: Wed Dec 24 2025 - 04:53:07 EST


On Wed, Dec 24, 2025 at 05:29:35PM +0800, Haoxiang Li wrote:
> If cdns3_gadget_ep_alloc_request() fails, a null pointer dereference
> occurs. Add a check to prevent it.
>
> Found by code review and compiled on ubuntu 20.04.

What tool did you use to find this through 'code review'?

And the compile line doesn't help, as I stated before.

And how was this tested?

thanks,

greg k-h