diff options
author | Nadezda Lutovinova <lutovinova@ispras.ru> | 2021-08-19 19:33:23 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-08-26 13:22:16 +0200 |
commit | 7c75bde329d7e2a93cf86a5c15c61f96f1446cdc (patch) | |
tree | 60d05a7912ec1d9c817a6b0154f7f4fa7bcdebff /tools | |
parent | 1abade64563ef5388db545b55cf158e849f6e717 (diff) | |
download | linux-7c75bde329d7e2a93cf86a5c15c61f96f1446cdc.tar.bz2 |
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>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions