Re: [PATCH 5.15/6.12] iio: light: bh1780: fix PM runtime leak on error path

From: Sasha Levin

Date: Sun Jun 21 2026 - 09:49:34 EST


> 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