Re: [PATCH] regulator: rt6190: Fix runtime PM imbalance in rt6190_out_enable()
From: ChiYuan Huang
Date: Wed Sep 16 2026 - 04:59:06 EST
On Wed, Sep 16, 2026 at 07:25:41AM +0000, Wentao Liang wrote:
> In rt6190_out_enable(), pm_runtime_get_sync() is called at the start of
> the function. However, if any subsequent regmap or regulator operation
> fails, the function returns directly without dropping the runtime PM
> reference, causing a runtime PM reference leak.
>
> Add an error handling path with pm_runtime_put() to keep the reference
> count balanced on failure.
>
> Fixes: e6999e7cca7e ("regulator: rt6190: Add support for Richtek RT6190 regulator")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Wentao Liang <vulab@xxxxxxxxxxx>
Reviewed-by: ChiYuan Huang <cy_huang@xxxxxxxxxxx>
Thanks for the fix.