[lvc-project] [PATCH 5.10] usb: cdns3: gadget: fix NULL pointer dereference in ep_queue

Sasha Levin sashal at kernel.org
Fri Jul 3 07:07:00 MSK 2026


On Thu, Jul 02, 2026 at 01:20:17PM +0300, Mikhail Dmitrichenko wrote:
> From: Yongchao Wu <yongchao.wu at autochips.com>
>
> commit 7f6f127b9bc34bed35f56faf7ecb1561d6b39000 upstream.
>
> When the gadget endpoint is disabled or not yet configured, the ep->desc
> pointer can be NULL. This leads to a NULL pointer dereference when
> __cdns3_gadget_ep_queue() is called, causing a kernel crash.

Queued up for 5.10.y, thanks!

-- 
Thanks,
Sasha



More information about the lvc-project mailing list