Skip to content

Commit e22b5e7

Browse files
Huazhong Tandavem330
authored andcommitted
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: b229236 ("net: hns3: Add debugfs framework registration") Signed-off-by: Huazhong Tan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent cddd564 commit e22b5e7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/net/ethernet/hisilicon/hns3/hns3_enet.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4127,9 +4127,8 @@ static void hns3_client_uninit(struct hnae3_handle *handle, bool reset)
41274127

41284128
hns3_put_ring_config(priv);
41294129

4130-
hns3_dbg_uninit(handle);
4131-
41324130
out_netdev_free:
4131+
hns3_dbg_uninit(handle);
41334132
free_netdev(netdev);
41344133
}
41354134

0 commit comments

Comments
 (0)