usb: musb: musb_dsps: request_irq() after initializing musb
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>
parent
1abade64
-
mentioned in commit 8de01a89
-
mentioned in commit f5b4df24
-
mentioned in commit 72bb3eaf
-
mentioned in commit 5269937d
-
mentioned in commit ffc82504
-
mentioned in commit c2115b2b
-
mentioned in commit 5ed60a43
-
mentioned in commit e923bce3
-
mentioned in commit 9d89e287
-
mentioned in commit 9ab5d539
Please register or sign in to comment