[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200605105608.GN71940@ediswmail.ad.cirrus.com>
Date: Fri, 5 Jun 2020 10:56:08 +0000
From: Charles Keepax <ckeepax@...nsource.cirrus.com>
To: Navid Emamdoost <navid.emamdoost@...il.com>
CC: Linus Walleij <linus.walleij@...aro.org>,
Bartosz Golaszewski <bgolaszewski@...libre.com>,
<patches@...nsource.cirrus.com>, <linux-gpio@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <emamd001@....edu>,
<wu000273@....edu>, <kjlu@....edu>, <smccaman@....edu>
Subject: Re: [PATCH] gpio: arizona: put pm_runtime in case of failure
On Thu, Jun 04, 2020 at 10:00:52PM -0500, Navid Emamdoost 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@...il.com>
> ---
Acked-by: Charles Keepax <ckeepax@...nsource.cirrus.com>
Thanks,
Charles
Powered by blists - more mailing lists