diff options
author | Huazhong Tan <tanhuazhong@huawei.com> | 2020-07-06 13:26:01 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-06 21:33:28 +0200 |
commit | e22b5e728bbb179b912d3a3cd5c25894a89a26a2 (patch) | |
tree | 5e2d015e5c5a49caad97d2e2868fe48176501852 /drivers | |
parent | net: hns3: fix for mishandle of asserting VF reset fail (diff) | |
download | linux-e22b5e728bbb179b912d3a3cd5c25894a89a26a2.tar.xz linux-e22b5e728bbb179b912d3a3cd5c25894a89a26a2.zip |
net: hns3: add a missing uninit debugfs when unload driver
When unloading driver, if flag HNS3_NIC_STATE_INITED has been
already cleared, the debugfs will not be uninitialized, so fix it.
Fixes: b2292360bb2a ("net: hns3: Add debugfs framework registration")
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c index b14f2abc2425..c38f3bbe7d97 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c @@ -4127,9 +4127,8 @@ static void hns3_client_uninit(struct hnae3_handle *handle, bool reset) hns3_put_ring_config(priv); - hns3_dbg_uninit(handle); - out_netdev_free: + hns3_dbg_uninit(handle); free_netdev(netdev); } |