Thread (3 messages) 3 messages, 3 authors, 2021-08-20

Re: [PATCH] usb: dwc3: imx8mp: request irq after initializing dwc3

From: Felipe Balbi <balbi@kernel.org>
Date: 2021-08-20 10:07:07
Also in: linux-usb, lkml

Nadezda Lutovinova [off-list ref] 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 <redacted>
Acked-by: Felipe Balbi <balbi@kernel.org>

-- 
balbi

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help