linux/drivers/gpu/drm/amd/display
Nicholas Kazlauskas 7a23512595 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 <nicholas.kazlauskas@amd.com>
Reviewed-by: David Francis <David.Francis@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-08-21 22:18:11 -05:00
..
amdgpu_dm drm/amd/display: Check return code for CRC drm_crtc_vblank_get 2019-08-21 22:18:11 -05:00
dc drm/amd/display: Load NV12 SOC BB from firmware 2019-08-15 10:57:42 -05:00
include drm/amd/display: Add Logging for Gamma Related information (2/2) 2019-08-15 10:56:46 -05:00
modules drm/amd/display: Add Logging for Gamma Related information (1/2) 2019-08-15 10:55:55 -05:00
Kconfig drm/amd/display: Add drm_audio_component support to amdgpu_dm 2019-07-11 14:37:24 -05:00
Makefile drm/amd/display: move clk_mgr files to right place 2019-05-31 10:39:31 -05:00
TODO drm/amd/display: Convert remaining loggers off dc_logger 2018-07-13 14:48:42 -05:00