* Coverity: mv88e6390_serdes_get_regs(): Error handling issues
@ 2020-04-13 16:20 coverity-bot
0 siblings, 0 replies; only message in thread
From: coverity-bot @ 2020-04-13 16:20 UTC (permalink / raw)
To: Andrew Lunn; +Cc: David S. Miller, Gustavo A. R. Silva, linux-next
Hello!
This is an experimental automated report about issues detected by Coverity
from a scan of next-20200413 as part of the linux-next weekly scan project:
https://scan.coverity.com/projects/linux-next-weekly-scan
You're getting this email because you were associated with the identified
lines of code (noted below) that were touched by commits:
Sun Feb 16 18:54:15 2020 +0100
bf3504cea7d7 ("net: dsa: mv88e6xxx: Add 6390 family PCS registers to ethtool -d")
Coverity reported the following:
*** CID 1461660: Error handling issues (CHECKED_RETURN)
/drivers/net/dsa/mv88e6xxx/serdes.c: 958 in mv88e6390_serdes_get_regs()
952
953 lane = mv88e6xxx_serdes_get_lane(chip, port);
954 if (lane == 0)
955 return;
956
957 for (i = 0 ; i < ARRAY_SIZE(mv88e6390_serdes_regs); i++) {
vvv CID 1461660: Error handling issues (CHECKED_RETURN)
vvv Calling "mv88e6390_serdes_read" without checking return value (as is done elsewhere 11 out of 13 times).
958 mv88e6390_serdes_read(chip, lane, MDIO_MMD_PHYXS,
959 mv88e6390_serdes_regs[i], ®);
960 p[i] = reg;
961 }
If this is a false positive, please let us know so we can mark it as
such, or teach the Coverity rules to be smarter. If not, please make
sure fixes get into linux-next. :) For patches fixing this, please
include these lines (but double-check the "Fixes" first):
Reported-by: coverity-bot <keescook+coverity-bot@chromium.org>
Addresses-Coverity-ID: 1461660 ("Error handling issues")
Fixes: bf3504cea7d7 ("net: dsa: mv88e6xxx: Add 6390 family PCS registers to ethtool -d")
Thanks for your attention!
--
Coverity-bot
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-04-13 16:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-13 16:20 Coverity: mv88e6390_serdes_get_regs(): Error handling issues coverity-bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).