[PATCH] Bluetooth: btmtksdio: fix usage_count leak when autosuspend_delay is negative
patchwork-bot+bluetooth at kernel.org
patchwork-bot+bluetooth at kernel.org
Fri Aug 7 09:30:13 PDT 2026
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz at intel.com>:
On Fri, 7 Aug 2026 23:14:47 +0800 you wrote:
> btmtksdio_setup() calls pm_runtime_use_autosuspend() when runtime PM
> is supported, but btmtksdio_remove() does not call the matching
> pm_runtime_dont_use_autosuspend() when removing the device.
>
> If the autosuspend delay is set to a negative value while autosuspend
> is enabled, the runtime PM core increments usage_count to prevent
> runtime suspend. Without calling pm_runtime_dont_use_autosuspend()
> during driver teardown, this reference is not dropped and usage_count
> remains unbalanced.
>
> [...]
Here is the summary with links:
- Bluetooth: btmtksdio: fix usage_count leak when autosuspend_delay is negative
https://git.kernel.org/bluetooth/bluetooth-next/c/1e4acc44552b
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
More information about the linux-arm-kernel
mailing list