Thread (2 messages) 2 messages, 2 authors, 2021-08-10

Re: [PATCH v2 6/9] usb: misc: brcmstb-usb-pinmap: add IRQ check

From: Florian Fainelli <f.fainelli@gmail.com>
Date: 2021-08-10 09:53:52
Also in: linux-usb


On 8/9/2021 1:45 PM, Sergey Shtylyov wrote:
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: 517c4c44b323 ("usb: Add driver to allow any GPIO to be used for 7211 USB signals")
Signed-off-by: Sergey Shtylyov <redacted>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
--
Florian

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help