diff options
author | Guenter Roeck <linux@roeck-us.net> | 2024-07-06 23:48:42 -0700 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2024-07-07 07:48:25 -0700 |
commit | af64e3e1537896337405f880c1e9ac1f8c0c6198 (patch) | |
tree | 49fa07551ff672e17b2169a4054e57c8cc21279c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 8cad724c8537fe3e0da8004646abc00290adae40 (diff) |
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