Wei Yongjun
91c1a802d0
Bluetooth: Fix debugfs entry leak in hci_register_dev()
...
[ Upstream commit 5a4bb6a8e981d3d0d492aa38412ee80b21033177 ]
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>
2022-01-27 09:00:53 +01:00
..
2020-01-27 14:46:30 +01:00
2021-09-26 13:37:28 +02:00
2021-08-04 12:22:14 +02:00
2021-01-17 13:58:58 +01:00
2021-04-07 12:47:02 +02:00
2020-10-01 13:12:42 +02:00
2021-12-29 12:17:36 +01:00
2021-11-26 11:40:41 +01:00
2022-01-27 09:00:53 +01:00
2021-12-22 09:17:58 +01:00
2022-01-27 09:00:49 +01:00
2021-09-22 11:45:33 +02:00
2021-08-04 12:22:15 +02:00
2020-11-05 11:07:03 +01:00
2021-12-14 10:16:55 +01:00
2021-01-23 15:48:46 +01:00
2021-09-22 11:45:33 +02:00
2021-07-28 11:12:18 +02:00
2020-04-24 08:01:25 +02:00
2020-04-02 16:34:24 +02:00
2020-01-09 10:17:59 +01:00
2021-05-22 10:57:24 +02:00
2021-08-26 08:37:02 -04:00
2022-01-11 13:57:38 +01:00
2022-01-11 13:57:38 +01:00
2020-12-08 10:17:32 +01:00
2019-04-17 08:37:45 +02:00
2021-02-23 14:00:29 +01:00
2021-09-22 11:45:33 +02:00
2021-02-10 09:12:08 +01:00
2021-08-04 12:22:17 +02:00
2022-01-11 13:57:35 +01:00
2021-04-16 11:57:52 +02:00
2021-12-08 08:46:55 +01:00
2021-04-16 11:57:51 +02:00
2021-12-29 12:17:33 +01:00
2021-09-22 11:45:32 +02:00
2021-12-22 09:17:58 +01:00
2021-07-28 11:12:18 +02:00
2022-01-27 09:00:47 +01:00
2021-05-22 10:57:21 +02:00
2021-12-22 09:18:00 +01:00
2022-01-11 13:57:37 +01:00
2019-12-05 15:38:15 +01:00
2021-03-30 14:40:12 +02:00
2021-12-08 08:46:55 +01:00
2020-01-12 12:11:57 +01:00
2020-12-08 10:17:32 +01:00
2021-01-23 15:48:47 +01:00
2022-01-11 13:57:36 +01:00
2022-01-05 12:33:49 +01:00
2021-12-08 08:46:55 +01:00
2021-09-22 11:45:30 +02:00
2021-09-22 11:45:33 +02:00
2021-10-06 15:05:09 +02:00
2021-11-26 11:40:36 +01:00
2021-11-26 11:40:41 +01:00
2021-06-30 08:48:47 -04:00
2021-07-20 16:17:44 +02:00
2021-06-30 08:48:47 -04:00
2021-08-04 12:22:14 +02:00
2020-08-21 09:48:14 +02:00