Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Signed-off-by: Navid Emamdoost <[email protected]> Signed-off-by: Rob Herring <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
- Loading branch information