diff options
author | Sergey Shtylyov <[email protected]> | 2021-08-09 23:53:16 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2021-08-13 13:05:50 +0200 |
commit | 0881e22c06e66af0b64773c91c8868ead3d01aa1 (patch) | |
tree | 300793ed99e47df7997db4515ddfe974ebd27073 /drivers/usb/cdns3/cdnsp-mem.c | |
parent | ecc2f30dbb25969908115c81ec23650ed982b004 (diff) |
usb: phy: twl6030: add IRQ checks
The driver neglects to check the result of platform_get_irq()'s calls and
blithely passes the negative error codes to request_threaded_irq() (which
takes *unsigned* IRQ #), causing them both to fail with -EINVAL, overriding
an original error code. Stop calling request_threaded_irq() with the
invalid IRQ #s.
Fixes: c33fad0c3748 ("usb: otg: Adding twl6030-usb transceiver driver for OMAP4430")
Acked-by: Felipe Balbi <[email protected]>
Signed-off-by: Sergey Shtylyov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdnsp-mem.c')
0 files changed, 0 insertions, 0 deletions