aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2013-12-12 08:05:33 +0100
committerJean Delvare <[email protected]>2013-12-12 08:05:33 +0100
commit3806b45ba4655147a011df03242cc197ab986c43 (patch)
tree6f16fdaab2125caf51cd1c9b2fb9cd9e1eb3674f /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
parent33a7ab91d509fa33b4bcd3ce0038cc80298050da (diff)
hwmon: Prevent some divide by zeros in FAN_TO_REG()
The "rpm * div" operations can overflow here, so this patch adds an upper limit to rpm to prevent that. Jean Delvare helped me with this patch. Signed-off-by: Dan Carpenter <[email protected]> Acked-by: Roger Lucas <[email protected]> Cc: [email protected] Signed-off-by: Jean Delvare <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions