summaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth/btintel.c
diff options
context:
space:
mode:
authorKiran K <kiran.k@intel.com>2024-07-03 10:52:42 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2024-07-26 16:53:56 +0200
commite22a3a9d4134d7e6351a2998771522e74bcc58da (patch)
treebb97199980638d4a65fed1b64c6388cae5f8217d /drivers/bluetooth/btintel.c
parentnet: phy: realtek: add support for RTL8366S Gigabit PHY (diff)
downloadlinux-e22a3a9d4134d7e6351a2998771522e74bcc58da.tar.xz
linux-e22a3a9d4134d7e6351a2998771522e74bcc58da.zip
Bluetooth: btintel: Fail setup on error
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>
Diffstat (limited to '')
-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 e7a612504ab1..2ebc970e6573 100644
--- a/drivers/bluetooth/btintel.c
+++ b/drivers/bluetooth/btintel.c
@@ -3085,6 +3085,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;