]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Bluetooth: btmtksdio: Check function enabled before doing close
authorChris Lu <chris.lu@mediatek.com>
Tue, 22 Apr 2025 01:21:55 +0000 (09:21 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 May 2025 09:14:07 +0000 (11:14 +0200)
commit10999c4102ff8918a6b07d94cf59e47c4c697992
treec04870c5bc9087f23c5a2cca65cfebd2484d53b3
parent2a21e9e0fc585e26f5c96e84b6d88e4ba9969460
Bluetooth: btmtksdio: Check function enabled before doing close

commit 07e90048e356a29079fbc011cfc2e1fa1d1c5ac9 upstream.

Check BTMTKSDIO_FUNC_ENABLED flag before doing close to prevent
btmtksdio_close been called twice.

Fixes: 6ac4233afb9a ("Bluetooth: btmtksdio: Prevent enabling interrupts after IRQ handler removal")
Signed-off-by: Chris Lu <chris.lu@mediatek.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/bluetooth/btmtksdio.c