[lvc-project] [PATCH 5.15/6.12] iio: light: bh1780: fix PM runtime leak on error path
Sasha Levin
sashal at kernel.org
Sun Jun 21 16:47:42 MSK 2026
> commit dd72e6c3cdea05cad24e99710939086f7a113fb5 upstream.
>
> Move pm_runtime_put_autosuspend() before the error check to ensure
> the PM runtime reference count is always decremented after
> pm_runtime_get_sync(), regardless of whether the read operation
> succeeds or fails.
Queued for 5.15 and 6.12, thanks.
--
Thanks,
Sasha
More information about the lvc-project
mailing list