[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210407095950.GA2961413@dell>
Date: Wed, 7 Apr 2021 10:59:50 +0100
From: Lee Jones <lee.jones@...aro.org>
To: Dinghao Liu <dinghao.liu@....edu.cn>
Cc: kjlu@....edu, patches@...nsource.cirrus.com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mfd: arizona: Fix rumtime PM imbalance on error
On Wed, 07 Apr 2021, Dinghao Liu wrote:
> pm_runtime_get_sync() will increase the rumtime PM counter
> even it returns an error. Thus a pairing decrement is needed
> to prevent refcount leak. Fix this by replacing this API with
> pm_runtime_resume_and_get(), which will not change the runtime
> PM counter on error.
>
> Signed-off-by: Dinghao Liu <dinghao.liu@....edu.cn>
> ---
> drivers/mfd/arizona-irq.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
--
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog
Powered by blists - more mailing lists