diff options
author | Rex Zhu <Rex.Zhu@amd.com> | 2018-09-20 11:50:26 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-10-09 17:00:25 -0500 |
commit | c52dcf49195d06319189c7f1dd8b62bfca545197 (patch) | |
tree | b4e6003fff6f0dfa55d57059e496d9d249839d0a /drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | |
parent | b3ca0f397ead2d794921ec3a08c132dadb37874e (diff) |
drm/amd/pp: Avoid divide-by-zero in fan_ctrl_set_fan_speed_rpm
The minRPM speed maybe equal to zero. so need to check
input RPM not equal to 0, otherwise cause divide-by-zero driver crash.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/inc/hwmgr.h')
0 files changed, 0 insertions, 0 deletions