aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_out.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2020-05-15 17:54:53 +0100
committerGreg Kroah-Hartman <[email protected]>2020-05-19 15:11:43 +0200
commita7f40c233a6b0540d28743267560df9cfb571ca9 (patch)
tree53f2fc20af445700bb2b7e96889bd60845410948 /net/lapb/lapb_out.c
parent78ef1b1ea193d1b977864f8c20968fcf4f1dbff4 (diff)
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions