Re: [PATCH] gpio: arizona: put pm_runtime in case of failure

From: Linus Walleij
Date: Wed Jun 10 2020 - 05:20:38 EST


On Fri, Jun 5, 2020 at 5:01 AM Navid Emamdoost
<navid.emamdoost@xxxxxxxxx> wrote:

> Calling pm_runtime_get_sync increments the counter even in case of
> failure, causing incorrect ref count if pm_runtime_put is not called in
> error handling paths. Call pm_runtime_put if pm_runtime_get_sync fails.
>
> Signed-off-by: Navid Emamdoost <navid.emamdoost@xxxxxxxxx>

Patch applied for fixes.

Yours,
Linus Walleij