diff options
| author | Navid Emamdoost <[email protected]> | 2020-06-05 02:44:44 +0000 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2020-06-14 14:25:04 +0000 |
| commit | d88de040e1df38414fc1e4380be9d0e997ab4d58 (patch) | |
| tree | ab9ffd6f27bc73d4c42b144fc347fb5b5d99833b /drivers/usb/cdns3/cdns3-ti.c | |
| parent | counter: 104-quad-8: Add lock guards - filter clock prescaler (diff) | |
| download | kernel-d88de040e1df38414fc1e4380be9d0e997ab4d58.tar.gz kernel-d88de040e1df38414fc1e4380be9d0e997ab4d58.zip | |
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 <[email protected]>
Fixes: 03b262f2bbf4 ("iio:pressure: initial zpa2326 barometer support")
Cc: <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-ti.c')
0 files changed, 0 insertions, 0 deletions
