drm/amd/display: avoid divided by zero
authorCharlene Liu <Charlene.Liu@amd.com>
Tue, 22 Oct 2024 22:42:56 +0000 (18:42 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Nov 2024 16:33:40 +0000 (11:33 -0500)
commitd1fd30e511a70911151dc9f71c705e1fab175cef
tree50c03b97cd202d78cd6214b49b2743e8b655c811
parentd29bd94c4fc9f10e043a5a207c902b4261cb7fd7
drm/amd/display: avoid divided by zero

[why]
insert divided by zero protection

Reviewed-by: Alvin Lee <alvin.lee2@amd.com>
Signed-off-by: Charlene Liu <Charlene.Liu@amd.com>
Signed-off-by: Zaeem Mohamed <zaeem.mohamed@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/modules/freesync/freesync.c