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 /tools/perf/scripts/python | |
| parent | drm/amd/pp: Fix fan's RPM setting not work on VI/Vega10 (diff) | |
| download | linux-c52dcf49195d06319189c7f1dd8b62bfca545197.tar.gz linux-c52dcf49195d06319189c7f1dd8b62bfca545197.zip | |
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 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
