[PATCH 4/9] usb: gadget: udc: s3c2410: add IRQ check

Felipe Balbi balbi at kernel.org
Mon Aug 9 03:09:07 PDT 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 devm_request_irq() (which takes
> *unsigned* IRQ #), causing it to fail with -EINVAL, overriding an original
> error code. Stop calling devm_request_irq() with the invalid IRQ #s.
>
> Fixes: 8b2e76687b39 ("USB: AT91 UDC updates, mostly power management")
> Signed-off-by: Sergey Shtylyov <s.shtylyov at omp.ru>

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

-- 
balbi



More information about the linux-arm-kernel mailing list