Home
last modified time | relevance | path

Searched hist:d88de040e1df38414fc1e4380be9d0e997ab4d58 (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/iio/pressure/
H A Dzpa2326.cdiff d88de040e1df38414fc1e4380be9d0e997ab4d58 Fri Jun 05 04:44:44 CEST 2020 Navid Emamdoost <navid.emamdoost@gmail.com> iio: pressure: zpa2326: handle pm_runtime_get_sync failure

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 <navid.emamdoost@gmail.com>
Fixes: 03b262f2bbf4 ("iio:pressure: initial zpa2326 barometer support")
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>