diff options
author | 2020-06-17 14:43:08 -0400 | |
---|---|---|
committer | 2020-07-01 01:59:23 -0400 | |
commit | 66429300e1bd9cdfbe96cfc475e4964db2a36921 (patch) | |
tree | 1a8bd69339c9f881c9c02e467ef3b6426ad05a1c /drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c | |
parent | drm/amdgpu/debugfs: fix ref count leak when pm_runtime_get_sync fails (diff) | |
download | linux-rng-66429300e1bd9cdfbe96cfc475e4964db2a36921.tar.xz linux-rng-66429300e1bd9cdfbe96cfc475e4964db2a36921.zip |
drm/amdgpu/pm: fix ref count leak when pm_runtime_get_sync fails
The call to pm_runtime_get_sync increments the counter even in case of
failure, leading to incorrect ref count.
In case of failure, decrement the ref count before returning.
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c')
0 files changed, 0 insertions, 0 deletions