diff options
author | 2015-01-19 09:16:53 -0800 | |
---|---|---|
committer | 2015-01-25 21:23:59 -0800 | |
commit | e2c26f058e31619b548046b84fe2c2116cb5016f (patch) | |
tree | 889f1f0e0b4c96ca91eb35972d5afa1131022c19 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | hwmon: (jc42) Fix integer overflow (diff) | |
download | wireguard-linux-e2c26f058e31619b548046b84fe2c2116cb5016f.tar.xz wireguard-linux-e2c26f058e31619b548046b84fe2c2116cb5016f.zip |
hwmon: (jc42) Fix integer overflow when writing hysteresis value
Subtracting an unsigned long from a signed value causes an overflow with large
values. Use clamp_val() to reduce the number range prior to subtracting it
from the temperature limit.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions