Home
last modified time | relevance | path

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

/openbmc/linux/drivers/usb/host/
H A Dehci-mv.cdiff a7f40c233a6b0540d28743267560df9cfb571ca9 Fri May 15 11:54:53 CDT 2020 Colin Ian King <colin.king@canonical.com> USB: EHCI: ehci-mv: fix less than zero comparison of an unsigned int

The comparison of hcd->irq to less than zero for an error check will
never be true because hcd->irq is an unsigned int. Fix this by
assigning the int retval to the return of platform_get_irq and checking
this for the -ve error condition and assigning hcd->irq to retval.

Addresses-Coverity: ("Unsigned compared against 0")
Fixes: c856b4b0fdb5 ("USB: EHCI: ehci-mv: fix error handling in mv_ehci_probe()")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20200515165453.104028-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>