drm/radeon: fix possible division-by-zero errors
authorjsg <jsg@openbsd.org>
Thu, 20 Jul 2023 08:43:49 +0000 (08:43 +0000)
committerjsg <jsg@openbsd.org>
Thu, 20 Jul 2023 08:43:49 +0000 (08:43 +0000)
commitaef4c79800778297e09b1d07db50b7e8a59f3f54
tree9ae372aae52b5a56ad94378b502c51b229750e7a
parentd5494d7d2503e062cdf48c2c690da474d042b9b4
drm/radeon: fix possible division-by-zero errors

From Nikita Zhandarovich
1420545b8a155416b8bc2bb86a7709e9ca0c620c in linux-6.1.y/6.1.39
1becc57cd1a905e2aa0e1eca60d2a37744525c4a in mainline linux
sys/dev/pci/drm/radeon/cypress_dpm.c
sys/dev/pci/drm/radeon/ni_dpm.c
sys/dev/pci/drm/radeon/rv740_dpm.c