Skip to content
Commit 0416e7af authored by Ameer Hamza's avatar Ameer Hamza Committed by Jakub Kicinski
Browse files

net: dsa: mv88e6xxx: error handling for serdes_power functions



Added default case to handle undefined cmode scenario in
mv88e6393x_serdes_power() and mv88e6393x_serdes_power() methods.

Addresses-Coverity: 1494644 ("Uninitialized scalar variable")
Fixes: 21635d92 (net: dsa: mv88e6xxx: Fix application of erratum 4.8 for 88E6393X)
Reviewed-by: default avatarMarek Behún <kabel@kernel.org>
Signed-off-by: default avatarAmeer Hamza <amhamza.mgc@gmail.com>
Link: https://lore.kernel.org/r/20211209041552.9810-1-amhamza.mgc@gmail.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 8d6b32aa
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment