[PATCH v2 7/9] usb: phy: fsl-usb: add IRQ check

Felipe Balbi balbi at kernel.org
Thu Aug 12 15:38:35 AEST 2021


Sergey Shtylyov <s.shtylyov at omp.ru> writes:

> 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")
> Signed-off-by: Sergey Shtylyov <s.shtylyov at omp.ru>

Acked-by: Felipe Balbi <balbi at kernel.org>

-- 
balbi


More information about the Linuxppc-dev mailing list