]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: add a missing uninit debugfs when unload driver
authorHuazhong Tan <tanhuazhong@huawei.com>
Mon, 6 Jul 2020 11:26:01 +0000 (19:26 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Jul 2020 19:33:28 +0000 (12:33 -0700)
commit37794930078e0f9ac0116c3c1f62a6798b647a70
tree5e2d015e5c5a49caad97d2e2868fe48176501852
parent81b8bc59b2bac855ce23d3ef4929d05d145c70ea
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: 0dca317e261e ("net: hns3: Add debugfs framework registration")
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c