linux/drivers/gpu/drm/amd/display
Nicholas Kazlauskas f41a895026 drm/amd/display: Guard against null stream_state in set_crc_source
[Why]

The igt@kms_plane@pixel-format-pipe tests can create a sequence where
stream_state is NULL during amdgpu_dm_crtc_set_crc_source which results
in a null pointer dereference.

[How]

Guard against stream_state being NULL before accessing its fields. This
doesn't fix the root cause of the issue so a DRM_ERROR is generated
to still fail the tests.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: David Francis <David.Francis@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2018-11-05 14:21:42 -05:00
..
amdgpu_dm drm/amd/display: Guard against null stream_state in set_crc_source 2018-11-05 14:21:42 -05:00
dc drm/amd/display: fix mirror rotation scaling math 2018-11-05 14:21:41 -05:00
include drm/amd/display: Add a check-function for virtual signal type 2018-10-09 17:01:48 -05:00
modules drm/amd/display: Clip all remaining regamma points after first clipped point 2018-11-05 14:21:33 -05:00
Kconfig drm/amd/display: Add DC config flag for Raven2 (v2) 2018-09-14 09:36:56 -05:00
Makefile drm/amd/display: Enable Stereo in Dal3 2018-08-27 11:10:57 -05:00
TODO drm/amd/display: Convert remaining loggers off dc_logger 2018-07-13 14:48:42 -05:00