Home
last modified time | relevance | path

Searched hist:ecc2f30d (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/usb/phy/
H A Dphy-fsl-usb.cecc2f30d Mon Aug 09 15:50:18 CDT 2021 Sergey Shtylyov <s.shtylyov@omp.ru> usb: phy: fsl-usb: add IRQ check

The driver neglects to check the result of platform_get_irq()'s call and
blithely passes the negative error codes to request_irq() (which takes
*unsigned* IRQ #), causing it to fail with -EINVAL, overriding an original
error code. Stop calling request_irq() with the invalid IRQ #s.

Fixes: 0807c500a1a6 ("USB: add Freescale USB OTG Transceiver driver")
Acked-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Link: https://lore.kernel.org/r/b0a86089-8b8b-122e-fd6d-73e8c2304964@omp.ru
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>