diff options
author | Dinghao Liu <dinghao.liu@zju.edu.cn> | 2020-05-20 18:36:04 +0800 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2020-05-22 11:13:52 +1000 |
commit | d3faddc7dcd326c0edc906f907f83a8454986d99 (patch) | |
tree | b0518436d57b44f512c436444965daac0d1c6417 /drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | |
parent | d7372dfb3f7f1602b87e0663e8b8646da23ebca7 (diff) |
drm/nouveau: fix runtime pm imbalance on error
pm_runtime_get_sync() increments the runtime PM usage counter even
the call returns an error code. Thus a pairing decrement is needed
on the error handling path to keep the counter balanced.
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c')
0 files changed, 0 insertions, 0 deletions