diff options
author | Huazhong Tan <tanhuazhong@huawei.com> | 2019-04-04 16:17:56 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-04 10:20:39 -0700 |
commit | c4e401e5a934bb0798ebbba98e08dab129695eff (patch) | |
tree | 6c96e297ecdcd0b6ee54123c68125cceb3eac243 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 389775a6605e040dddea21a778a88eaaa57c068d (diff) |
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 <tanhuazhong@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions