diff options
| author | Nicholas Kazlauskas <[email protected]> | 2019-08-20 16:58:37 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2019-08-22 03:18:11 +0000 |
| commit | 7a235125959cffa28c20059ff1cb8725571fcf9f (patch) | |
| tree | 7a7b9f5d7161e150a8e0f33ccbe7e62c923d5c31 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
| parent | drm/amd/amdgpu: disable MMHUB PG for navi10 (diff) | |
| download | kernel-7a235125959cffa28c20059ff1cb8725571fcf9f.tar.gz kernel-7a235125959cffa28c20059ff1cb8725571fcf9f.zip | |
drm/amd/display: Check return code for CRC drm_crtc_vblank_get
[Why]
The call to drm_crtc_vblank_get can fail if vblank is disabled and
we try to increment the reference.
Since drm_crtc_vblank_get internally drops the reference when it fails
it means the subsequent drm_crtc_vblank_put(...) when closing the file
drops a zero reference.
This was found via igt@kms_plane@pixel-format-pipe-A-planes.
[How]
Check the return code and return it on failure.
We wouldn't have been able to enable CRC reading anyway since vblank
wasn't enabled.
Signed-off-by: Nicholas Kazlauskas <[email protected]>
Reviewed-by: David Francis <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions
