diff options
author | Navid Emamdoost <navid.emamdoost@gmail.com> | 2020-06-14 01:36:19 -0500 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2020-08-07 10:45:07 -0600 |
commit | 9df0e0c1889677175037445d5ad1654d54176369 (patch) | |
tree | 180b4b2a1c6e8e12f24e1548ddf947f3ab9a7a24 /drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | |
parent | fd587ff01d59554144e2fd20f4113638a45c7c4e (diff) |
drm/panfrost: perfcnt: fix ref count leak in panfrost_perfcnt_enable_locked
in panfrost_perfcnt_enable_locked, pm_runtime_get_sync is called which
increments the counter even in case of failure, leading to incorrect
ref count. In case of failure, decrement the ref count before returning.
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200614063619.44944-1-navid.emamdoost@gmail.com
Diffstat (limited to 'drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c')
0 files changed, 0 insertions, 0 deletions