diff mbox series

[v1] Bluetooth: btintel: Fail setup on error

Message ID 20240703085242.3218277-1-kiran.k@intel.com
State Accepted
Commit e0b0a863028e6529d2c7a726be28ff3741bd6f78
Headers show
Series [v1] Bluetooth: btintel: Fail setup on error | expand

Commit Message

K, Kiran July 3, 2024, 8:52 a.m. UTC
Do not attempt to send any hci command to controller if *setup* function
fails.

Signed-off-by: Kiran K <kiran.k@intel.com>
---
 drivers/bluetooth/btintel.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

patchwork-bot+bluetooth@kernel.org July 16, 2024, 7:30 p.m. UTC | #1
Hello:

This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:

On Wed,  3 Jul 2024 14:22:42 +0530 you wrote:
> Do not attempt to send any hci command to controller if *setup* function
> fails.
> 
> Signed-off-by: Kiran K <kiran.k@intel.com>
> ---
>  drivers/bluetooth/btintel.c | 3 +++
>  1 file changed, 3 insertions(+)

Here is the summary with links:
  - [v1] Bluetooth: btintel: Fail setup on error
    https://git.kernel.org/bluetooth/bluetooth-next/c/e0b0a863028e

You are awesome, thank you!
diff mbox series

Patch

diff --git a/drivers/bluetooth/btintel.c b/drivers/bluetooth/btintel.c
index 54bfe2ffe1d2..661699258566 100644
--- a/drivers/bluetooth/btintel.c
+++ b/drivers/bluetooth/btintel.c
@@ -3082,6 +3082,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;