aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2019-10-13 22:00:16 +0000
committerGreg Kroah-Hartman <[email protected]>2019-10-15 19:38:41 +0000
commitf50b6805dbb993152025ec04dea094c40cc93a0c (patch)
treed4d4551500085fa5864edb96d0d9bec7c4ffe660 /net/unix/af_unix.c
parentLinux 5.4-rc3 (diff)
downloadkernel-f50b6805dbb993152025ec04dea094c40cc93a0c.tar.gz
kernel-f50b6805dbb993152025ec04dea094c40cc93a0c.zip
8250-men-mcb: fix error checking when get_num_ports returns -ENODEV
The current checking for failure on the number of ports fails when -ENODEV is returned from the call to get_num_ports. Fix this by making num_ports and loop counter i signed rather than unsigned ints. Also add check for num_ports being less than zero to check for -ve error returns. Addresses-Coverity: ("Unsigned compared against 0") Fixes: e2fea54e4592 ("8250-men-mcb: add support for 16z025 and 16z057") Signed-off-by: Colin Ian King <[email protected]> Reviewed-by: Michael Moese <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions