Messages in this thread | | | Date | Fri, 5 Jun 2020 10:56:08 +0000 | From | Charles Keepax <> | 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@gmail.com> > ---
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Thanks, Charles
| |