Skip to content

Commit e22a3a9

Browse files
kirankrishnappa-intelVudentz
authored andcommitted
Bluetooth: btintel: Fail setup on error
Do not attempt to send any hci command to controller if *setup* function fails. Fixes: af39533 ("Bluetooth: btintel: Add Intel devcoredump support") Signed-off-by: Kiran K <[email protected]> Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent 225990c commit e22a3a9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/bluetooth/btintel.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3085,6 +3085,9 @@ static int btintel_setup_combined(struct hci_dev *hdev)
30853085
btintel_set_dsm_reset_method(hdev, &ver_tlv);
30863086

30873087
err = btintel_bootloader_setup_tlv(hdev, &ver_tlv);
3088+
if (err)
3089+
goto exit_error;
3090+
30883091
btintel_register_devcoredump_support(hdev);
30893092
btintel_print_fseq_info(hdev);
30903093
break;

0 commit comments

Comments
 (0)