Skip to content

Commit 0983fb4

Browse files
Hsin-chen ChuangVudentz
authored andcommitted
Bluetooth: Fix possible infinite recursion of btusb_reset
The function enters infinite recursion if the HCI device doesn't support GPIO reset: btusb_reset -> hdev->reset -> vendor_reset -> btusb_reset... btusb_reset shouldn't call hdev->reset after commit f07d478 ("Bluetooth: Get rid of cmd_timeout and use the reset callback") Fixes: f07d478 ("Bluetooth: Get rid of cmd_timeout and use the reset callback") Signed-off-by: Hsin-chen Chuang <[email protected]> Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent e9087e8 commit 0983fb4

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/bluetooth/btusb.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -899,11 +899,6 @@ static void btusb_reset(struct hci_dev *hdev)
899899
struct btusb_data *data;
900900
int err;
901901

902-
if (hdev->reset) {
903-
hdev->reset(hdev);
904-
return;
905-
}
906-
907902
data = hci_get_drvdata(hdev);
908903
/* This is not an unbalanced PM reference since the device will reset */
909904
err = usb_autopm_get_interface(data->intf);

0 commit comments

Comments
 (0)