linux-brain/drivers/usb/musb
Nadezda Lutovinova 9a4a680529 usb: musb: musb_dsps: request_irq() after initializing musb
[ Upstream commit 7c75bde329d7e2a93cf86a5c15c61f96f1446cdc ]

If IRQ occurs between calling  dsps_setup_optional_vbus_irq()
and  dsps_create_musb_pdev(), then null pointer dereference occurs
since glue->musb wasn't initialized yet.

The patch puts initializing of neccesery data before registration
of the interrupt handler.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Nadezda Lutovinova <lutovinova@ispras.ru>
Link: https://lore.kernel.org/r/20210819163323.17714-1-lutovinova@ispras.ru
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-09-22 12:26:35 +02:00
..
Kconfig
Makefile
am35x.c
cppi_dma.c
cppi_dma.h
da8xx.c
davinci.c
davinci.h
jz4740.c
musb_am335x.c
musb_core.c usb: musb: fix MUSB_QUIRK_B_DISCONNECT_99 handling 2021-06-16 11:59:41 +02:00
musb_core.h
musb_cppi41.c
musb_debug.h
musb_debugfs.c usb: musb: Fix runtime PM imbalance on error 2020-06-10 20:24:56 +02:00
musb_dma.h
musb_dsps.c usb: musb: musb_dsps: request_irq() after initializing musb 2021-09-22 12:26:35 +02:00
musb_gadget.c
musb_gadget.h
musb_gadget_ep0.c
musb_host.c usb: musb: fix crash with highmen PIO and usbmon 2020-04-01 11:02:15 +02:00
musb_host.h
musb_io.h
musb_regs.h
musb_trace.c
musb_trace.h
musb_virthub.c
musbhsdma.c
omap2430.c
omap2430.h
sunxi.c
tusb6010.c
tusb6010.h
tusb6010_omap.c
ux500.c
ux500_dma.c