Star64_linux/drivers/net/netdevsim
Zhengchao Shao 0aa901cdc9 netdevsim: remove dir in nsim_dev_debugfs_init() when creating ports dir failed
[ Upstream commit a6aa8d0ce2 ]

Remove dir in nsim_dev_debugfs_init() when creating ports dir failed.
Otherwise, the netdevsim device will not be created next time. Kernel
reports an error: debugfs: Directory 'netdevsim1' with parent 'netdevsim'
already present!

Fixes: ab1d0cc004 ("netdevsim: change debugfs tree topology")
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-04-19 17:55:53 +08:00
..
bpf.c
bus.c
dev.c netdevsim: remove dir in nsim_dev_debugfs_init() when creating ports dir failed 2023-04-19 17:55:53 +08:00
ethtool.c
fib.c
health.c
ipsec.c
Makefile
netdev.c net: Use u64_stats_fetch_begin_irq() for stats fetch. 2023-04-19 17:53:40 +08:00
netdevsim.h
psample.c
udp_tunnels.c