]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Fix Divide by 0 in memory calculations
authorMurton Liu <murton.liu@amd.com>
Fri, 15 Feb 2019 20:05:43 +0000 (15:05 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:04:04 +0000 (15:04 -0500)
commit09d150d820d279547af81e672f734d4fa62c9812
tree7cb757ff98adebc844a3e5c66f062987bcea03de
parent63ae98013fbb392e62d4005fc64c24bd7419d3ee
drm/amd/display: Fix Divide by 0 in memory calculations

Check if we get any values equal to 0, and set to 1 if so.

Signed-off-by: Murton Liu <murton.liu@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Acked-by: Sivapiriyan Kumarasamy <Sivapiriyan.Kumarasamy@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp_dscl.c