linux/drivers/gpu/drm/amd
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
..
acp
amdgpu drm/amd/amdgpu: Do irq_fini_hw after ip_fini_early 2021-10-19 17:16:50 -04:00
amdkfd drm/amdkfd: map gpu hive id to xgmi connected cpu 2021-10-19 17:14:40 -04:00
display drm/amd/display: Validate plane rects before use 2021-10-19 17:18:22 -04:00
include drm/amd/display: Enable PSR by default on newer DCN 2021-10-13 14:14:34 -04:00
pm drm/amdgpu/swsmu: fix is_support_sw_smu() for VEGA20 2021-10-13 22:20:34 -04:00