drm/amd/display: Check if modulo is 0 before dividing.
authorjsg <jsg@openbsd.org>
Wed, 15 Jun 2022 07:34:21 +0000 (07:34 +0000)
committerjsg <jsg@openbsd.org>
Wed, 15 Jun 2022 07:34:21 +0000 (07:34 +0000)
commitcfb29b9a346bae0b639c9f4fac91f598c77b1c91
treecc4ad0682e523dd7b7507214549d8e7421f99bbc
parent83eea38a58b286c74942d4273e6a618174639bff
drm/amd/display: Check if modulo is 0 before dividing.

From David Galiffi
10ef82d6e0af5536ec64770c07f6bbabfdd6977c in linux 5.15.y/5.15.47
49947b906a6bd9668eaf4f9cf691973c25c26955 in mainline linux
sys/dev/pci/drm/amd/display/dc/dce/dce_clock_source.c