diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2022-10-20 10:16:56 +0800 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2022-12-12 14:19:23 -0800 |
commit | 0d75da38e060d21f948b3df5f5e349c962cf1ed2 (patch) | |
tree | 24796d0ca6118798134ea1bf64abc6d142580e39 /net/bluetooth/mgmt.c | |
parent | 37224a290853a69f7e8e8c2269c9caea6e2bcb4b (diff) |
Bluetooth: hci_core: fix error handling in hci_register_dev()
If hci_register_suspend_notifier() returns error, the hdev and rfkill
are leaked. We could disregard the error and print a warning message
instead to avoid leaks, as it just means we won't be handing suspend
requests.
Fixes: 9952d90ea288 ("Bluetooth: Handle PM_SUSPEND_PREPARE and PM_POST_SUSPEND")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'net/bluetooth/mgmt.c')
0 files changed, 0 insertions, 0 deletions