Files
linux/net/bluetooth
Wei Yongjun 9db981d200 Bluetooth: Fix debugfs entry leak in hci_register_dev()
[ Upstream commit 5a4bb6a8e9 ]

Fault injection test report debugfs entry leak as follows:

debugfs: Directory 'hci0' with parent 'bluetooth' already present!

When register_pm_notifier() failed in hci_register_dev(), the debugfs
create by debugfs_create_dir() do not removed in the error handing path.

Add the remove debugfs code to fix it.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-16 12:32:05 +09:00
..
2015-07-30 13:31:59 +02:00
2018-03-22 09:54:47 +01:00
2015-07-30 13:31:59 +02:00
2023-05-15 09:11:48 +09:00