Re: [PATCH] io: pressure: zpa2326: handle pm_runtime_get_sync failure

2020-06-07 Thread Navid Emamdoost
On Sat, Jun 6, 2020 at 2:29 PM Andy Shevchenko wrote: > > > > On Saturday, June 6, 2020, Jonathan Cameron wrote: >> >> On Thu, 4 Jun 2020 21:44:44 -0500 >> Navid Emamdoost wrote: >> >> > Calling pm_runtime_get_sync increments the counter even in case of >> > failure, causing incorrect ref count

Re: [PATCH] io: pressure: zpa2326: handle pm_runtime_get_sync failure

2020-06-06 Thread Jonathan Cameron
On Thu, 4 Jun 2020 21:44:44 -0500 Navid Emamdoost wrote: > Calling pm_runtime_get_sync increments the counter even in case of > failure, causing incorrect ref count. Call pm_runtime_put if > pm_runtime_get_sync fails. > > Signed-off-by: Navid Emamdoost Hi Navid, This looks to be a fix, be it

[PATCH] io: pressure: zpa2326: handle pm_runtime_get_sync failure

2020-06-04 Thread Navid Emamdoost
Calling pm_runtime_get_sync increments the counter even in case of failure, causing incorrect ref count. Call pm_runtime_put if pm_runtime_get_sync fails. Signed-off-by: Navid Emamdoost --- drivers/iio/pressure/zpa2326.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/driv