diff options
author | 2024-07-06 23:48:42 -0700 | |
---|---|---|
committer | 2024-07-07 07:48:25 -0700 | |
commit | af64e3e1537896337405f880c1e9ac1f8c0c6198 (patch) | |
tree | 49fa07551ff672e17b2169a4054e57c8cc21279c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | hwmon: (adc128d818) Fix underflows seen when writing limit attributes (diff) | |
download | linux-rng-af64e3e1537896337405f880c1e9ac1f8c0c6198.tar.xz linux-rng-af64e3e1537896337405f880c1e9ac1f8c0c6198.zip |
hwmon: (lm95234) Fix underflows seen when writing limit attributes
DIV_ROUND_CLOSEST() after kstrtol() results in an underflow if a large
negative number such as -9223372036854775808 is provided by the user.
Fix it by reordering clamp_val() and DIV_ROUND_CLOSEST() operations.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions