diff options
author | Kiran K <kiran.k@intel.com> | 2024-07-03 10:52:42 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2024-07-26 16:53:56 +0200 |
commit | e22a3a9d4134d7e6351a2998771522e74bcc58da (patch) | |
tree | bb97199980638d4a65fed1b64c6388cae5f8217d /drivers/bluetooth/btintel.c | |
parent | net: phy: realtek: add support for RTL8366S Gigabit PHY (diff) | |
download | linux-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.c | 3 |
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; |