[ldv-project] [PATCH] usb: dwc3: imx8mp: request irq after initializing dwc3
Felipe Balbi
balbi at kernel.org
Fri Aug 20 13:06:33 MSK 2021
Nadezda Lutovinova <lutovinova at ispras.ru> writes:
> If IRQ occurs between calling devm_request_threaded_irq() and
> initializing dwc3_imx->dwc3, then null pointer dereference occurs
> since dwc3_imx->dwc3 is used in dwc3_imx8mp_interrupt().
>
> The patch puts registration of the interrupt handler after
> initializing of neccesery data.
>
> Found by Linux Driver Verification project (linuxtesting.org).
>
> Signed-off-by: Nadezda Lutovinova <lutovinova at ispras.ru>
Acked-by: Felipe Balbi <balbi at kernel.org>
--
balbi
More information about the ldv-project
mailing list