diff options
author | Navid Emamdoost <navid.emamdoost@gmail.com> | 2020-06-05 06:32:39 +0300 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2020-11-04 00:30:32 +0300 |
commit | 79c43333bdd5a7026a5aab606b53053b643585e7 (patch) | |
tree | 1d133bb2c7202da791ccdfb4e40f22350dd98966 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | e002103b36a695f7cb6048b96da73e66c86ddffb (diff) | |
download | linux-79c43333bdd5a7026a5aab606b53053b643585e7.tar.xz |
can: xilinx_can: handle failure cases of pm_runtime_get_sync
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>
Link: https://lore.kernel.org/r/20200605033239.60664-1-navid.emamdoost@gmail.com
Fixes: 4716620d1b62 ("can: xilinx: Convert to runtime_pm")
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions