Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
usb: gadget: mv_u3d: request_irq() after initializing UDC
[ Upstream commit 2af0c5f ] If IRQ occurs between calling request_irq() and mv_u3d_eps_init(), then null pointer dereference occurs since u3d->eps[] wasn't initialized yet but used in mv_u3d_nuke(). The patch puts registration of the interrupt handler after initializing of neccesery data. Found by Linux Driver Verification project (linuxtesting.org). Fixes: 90fccb5 ("usb: gadget: Gadget directory cleanup - group UDC drivers") Acked-by: Felipe Balbi <[email protected]> Signed-off-by: Nadezda Lutovinova <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
- Loading branch information