diff options
author | Murton Liu <murton.liu@amd.com> | 2019-02-15 15:05:43 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-03-19 15:04:04 -0500 |
commit | 59979bf8be1784ebfc44215031c6c88ca22ae65d (patch) | |
tree | 7cb757ff98adebc844a3e5c66f062987bcea03de /drivers/gpu/drm/amd/amdgpu/psp_gfx_if.h | |
parent | a427a886a8c7558a1d590d5f1530d59d54a7c9d2 (diff) | |
download | linux-59979bf8be1784ebfc44215031c6c88ca22ae65d.tar.gz linux-59979bf8be1784ebfc44215031c6c88ca22ae65d.tar.bz2 linux-59979bf8be1784ebfc44215031c6c88ca22ae65d.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/psp_gfx_if.h')
0 files changed, 0 insertions, 0 deletions