]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Bluetooth: btusb: mediatek: add intf release flow when usb disconnect
authorChris Lu <chris.lu@mediatek.com>
Mon, 23 Sep 2024 08:47:04 +0000 (16:47 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Jan 2025 09:34:25 +0000 (10:34 +0100)
commitcc569d791ab2a0de74f76e470515d25d24c9b84b
treea194fc78e53624e89a4229ae17f304184fd15db3
parent9da1cfc4f111b7e4ea3d7f388b16b17bb881795e
Bluetooth: btusb: mediatek: add intf release flow when usb disconnect

commit 489304e67087abddc2666c5af0159cb95afdcf59 upstream.

MediaTek claim an special usb intr interface for ISO data transmission.
The interface need to be released before unregistering hci device when
usb disconnect. Removing BT usb dongle without properly releasing the
interface may cause Kernel panic while unregister hci device.

Signed-off-by: Chris Lu <chris.lu@mediatek.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Cc: Fedor Pchelkin <boddah8794@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/bluetooth/btusb.c