1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/display
Aric Cyr 94e587b8d1 drm/amd/display: Validate plane rects before use
[Why]
Calculation of scaling ratio can result in a crash due to zero'd src or
dst plane rects.

[How]
Validate that src and dst rects are valid before using for scaling
calculations.

Reviewed-by: Josip Pavic <Josip.Pavic@amd.com>
Acked-by: Agustin Gutierrez Sanchez <agustin.gutierrez@amd.com>
Signed-off-by: Aric Cyr <aric.cyr@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2021-10-19 17:18:22 -04:00
..
amdgpu_dm drm/amd/display: Fully switch to dmub for all dcn21 asics 2021-10-19 17:17:02 -04:00
dc drm/amd/display: Validate plane rects before use 2021-10-19 17:18:22 -04:00
dmub drm/amd/display: Add dpia debug options 2021-10-06 15:52:24 -04:00
include drm/amd/display: USB4 bring up set correct address 2021-10-06 15:53:08 -04:00
modules drm/amd/display: Revert adding degamma coefficients 2021-09-14 15:57:10 -04:00
Kconfig drm/amdgpu/display: fix dependencies for DRM_AMD_DC_SI 2021-10-04 15:23:02 -04:00
Makefile drm/amd/display: Drop CONFIG_DRM_AMD_DC_DMUB guards 2019-11-13 15:29:42 -05:00
TODO drm/amd/display: Convert remaining loggers off dc_logger 2018-07-13 14:48:42 -05:00