]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
amdgpu/dc: Fix double unlock in amdgpu_dm_commit_planes
authorErnst Sjöstrand <ernstp@gmail.com>
Tue, 7 Nov 2017 20:18:06 +0000 (21:18 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Nov 2017 21:22:28 +0000 (16:22 -0500)
commit53a23207f2a17fd990c85bd84c45d243463e21bb
tree38106c3fa0dcbc405692177b251678599750c835
parent423788c7a866cb7f5265af9b96952e8a4bf48fd5
amdgpu/dc: Fix double unlock in amdgpu_dm_commit_planes

Reported by smartch:
amdgpu_dm_commit_planes() error: double unlock 'spin_lock:&crtc->dev->event_lock'
amdgpu_dm_commit_planes() error: double unlock 'irqsave:flags'

The error path doesn't return so we only need a single unlock.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Ernst Sjöstrand <ernstp@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c