Re: [PATCH] gpio: xilinx: fix runtime PM leak on request error path

From: Bartosz Golaszewski

Date: Mon Sep 28 2026 - 04:37:55 EST



On Wed, 23 Sep 2026 11:39:02 +0000, Ridham Khurana wrote:
> pm_runtime_get_sync() leaves the usage counter incremented even when it
> fails, and xgpio_request() returns the error without dropping it.
>
> gpiolib does not call ->free() when ->request() fails, so xgpio_free(),
> which holds the only matching pm_runtime_put(), never runs. The reference
> is leaked and the controller can no longer runtime-suspend, so its clock
> stays enabled.
>
> [...]

Applied, thanks!

[1/1] gpio: xilinx: fix runtime PM leak on request error path
https://git.kernel.org/brgl/c/ff82fc3a4a1d417dee1229681cc5285986edb1fa

Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>