summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2021-10-13 16:55:46 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-01-27 08:46:16 +0100
commitfb0d3aa2055d342ab9689accf757f29ff62102a2 (patch)
tree50fd9e23f93da8a8c5c979e50e1bfd40bfdb97fc /include/linux
parent184e1b9494f92be3073ca37544f0b9a15cb7fdc7 (diff)
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>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions