aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorJian Shen <shenjian15@huawei.com>2021-04-29 16:34:52 +0800
committerDavid S. Miller <davem@davemloft.net>2021-04-29 15:41:43 -0700
commitb4047aac4ec1066bab6c71950623746d7bcf7154 (patch)
tree3a00a7cca5f853e58ed2ab64bbf1c8f334d02fa4 /tools/perf/scripts/python/flamegraph.py
parent568a54bdf70b143f3e0befa298e22ad469ffc732 (diff)
net: hns3: add check for HNS3_NIC_STATE_INITED in hns3_reset_notify_up_enet()
In some cases, the device is not initialized because reset failed. If another task calls hns3_reset_notify_up_enet() before reset retry, it will cause an error since uninitialized pointer access. So add check for HNS3_NIC_STATE_INITED before calling hns3_nic_net_open() in hns3_reset_notify_up_enet(). Fixes: bb6b94a896d4 ("net: hns3: Add reset interface implementation in client") Signed-off-by: Jian Shen <shenjian15@huawei.com> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions