aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/mtu3/mtu3_trace.c
diff options
context:
space:
mode:
authorNadezda Lutovinova <lutovinova@ispras.ru>2021-08-19 18:48:18 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-08-26 13:10:56 +0200
commit6a48d0ae01a6ab05ae5e78328546a2f5f6d3054a (patch)
tree19420c516bf7cfecf6c31f783a45a71472d29f51 /drivers/usb/mtu3/mtu3_trace.c
parent4720f1bf4ee4a784d9ece05420ba33c9222a3004 (diff)
usb: dwc3: imx8mp: request irq after initializing dwc3
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). Reviewed-by: Fabio Estevam <festevam@gmail.com> Acked-by: Felipe Balbi <balbi@kernel.org> Signed-off-by: Nadezda Lutovinova <lutovinova@ispras.ru> Link: https://lore.kernel.org/r/20210819154818.18334-1-lutovinova@ispras.ru Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/mtu3/mtu3_trace.c')
0 files changed, 0 insertions, 0 deletions