Skip to content
Commit 2af8cb61 authored by Guojia Liao's avatar Guojia Liao Committed by David S. Miller
Browse files

net: hns3: add protection when get SFP speed as 0



In some case, the MAC speed get from hardware maybe 0, it should
not be set to mac->speed.

Signed-off-by: default avatarGuojia Liao <liaoguojia@huawei.com>
Signed-off-by: default avatarHuazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f97c4d82
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