]> Git Repo - linux.git/commit
net: hns3: check resetting status in hns3_get_stats()
authorHuazhong Tan <[email protected]>
Thu, 4 Apr 2019 08:17:56 +0000 (16:17 +0800)
committerDavid S. Miller <[email protected]>
Thu, 4 Apr 2019 17:20:39 +0000 (10:20 -0700)
commitc4e401e5a934bb0798ebbba98e08dab129695eff
tree6c96e297ecdcd0b6ee54123c68125cceb3eac243
parent389775a6605e040dddea21a778a88eaaa57c068d
net: hns3: check resetting status in hns3_get_stats()

hns3_get_stats() should check the resetting status firstly,
since the device will be reinitialized when resetting. If the
reset has not completed, the hns3_get_stats() may access
invalid memory.

Signed-off-by: Huazhong Tan <[email protected]>
Signed-off-by: Peng Li <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c
This page took 0.054101 seconds and 4 git commands to generate.