[PATCH] dmaengine: stm32-mdma: Fix runtime PM reference leak in pm_suspend

Vinod Koul vkoul at kernel.org
Fri Nov 20 02:04:37 PST 2026


On Mon, 02 Nov 2026 18:44:31 +0800, Xiangwu Lai wrote:
> stm32_mdma_pm_suspend() increments the runtime PM usage counter with
> pm_runtime_resume_and_get(), but when a channel is still enabled it
> returns -EBUSY directly without dropping the reference.  The matching
> pm_runtime_put_sync() only runs on the success path.
> 
> Each failed suspend attempt therefore leaks one runtime PM reference,
> so the device can never runtime suspend afterwards.  Drop the
> reference before returning -EBUSY.
> 
> [...]

Applied, thanks!

[1/1] dmaengine: stm32-mdma: Fix runtime PM reference leak in pm_suspend
      commit: 34c8c2ea213aab7b452df93e5b7547f4459a49e9

Best regards,
-- 
~Vinod





More information about the linux-arm-kernel mailing list