summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKiran K <kiran.k@intel.com>2024-07-03 11:52:42 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-08-11 13:57:51 +0300
commit0a5899d8a4c67aabc694f9e8a661b1640caa8111 (patch)
tree314ecd2e109f3be1fe4e9be2bc85657b564c7c4b
parentfeacd3a9646707b5854ebddac89251985e44d848 (diff)
downloadlinux-0a5899d8a4c67aabc694f9e8a661b1640caa8111.tar.xz
Bluetooth: btintel: Fail setup on error
[ Upstream commit e22a3a9d4134d7e6351a2998771522e74bcc58da ] Do not attempt to send any hci command to controller if *setup* function fails. Fixes: af395330abed ("Bluetooth: btintel: Add Intel devcoredump support") Signed-off-by: Kiran K <kiran.k@intel.com> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r--drivers/bluetooth/btintel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/bluetooth/btintel.c b/drivers/bluetooth/btintel.c
index 7ecc67deecb0..93900c37349c 100644
--- a/drivers/bluetooth/btintel.c
+++ b/drivers/bluetooth/btintel.c
@@ -3012,6 +3012,9 @@ static int btintel_setup_combined(struct hci_dev *hdev)
btintel_set_dsm_reset_method(hdev, &ver_tlv);
err = btintel_bootloader_setup_tlv(hdev, &ver_tlv);
+ if (err)
+ goto exit_error;
+
btintel_register_devcoredump_support(hdev);
btintel_print_fseq_info(hdev);
break;