]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Bluetooth: Fix possible infinite recursion of btusb_reset
authorHsin-chen Chuang <chharry@chromium.org>
Mon, 20 Jan 2025 10:39:39 +0000 (18:39 +0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 29 Jan 2025 20:23:18 +0000 (15:23 -0500)
commit0983fb4799e78b1783eb5ed0dfe324649c491bb7
tree1082cadaff9ca5430a2e86d120e57927676fd9e4
parente9087e828827e5a5c85e124ce77503f2b81c3491
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 f07d478090b0
("Bluetooth: Get rid of cmd_timeout and use the reset callback")

Fixes: f07d478090b0 ("Bluetooth: Get rid of cmd_timeout and use the reset callback")
Signed-off-by: Hsin-chen Chuang <chharry@chromium.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btusb.c