Skip to content
Commit 67132792 authored by Huazhong Tan's avatar Huazhong Tan Committed by Paul Gortmaker
Browse files

net: hns3: add a missing uninit debugfs when unload driver

commit e22b5e72 upstream.

When unloading driver, if flag HNS3_NIC_STATE_INITED has been
already cleared, the debugfs will not be uninitialized, so fix it.

Fixes: b2292360

 ("net: hns3: Add debugfs framework registration")
Signed-off-by: default avatarHuazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent 9f727874
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment