diff options
author | Pei Xiao <xiaopei01@kylinos.cn> | 2024-11-12 04:39:51 +0300 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2024-11-13 00:54:55 +0300 |
commit | 57ee12b6c514146c19b6a159013b48727a012960 (patch) | |
tree | 3259320a9581d44718b6dad5000d95f8a7afc1ed /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 255ab27a0743865e625d7a6c385d6d10d38eafd5 (diff) | |
download | linux-57ee12b6c514146c19b6a159013b48727a012960.tar.xz |
hwmon: (nct6775-core) Fix overflows seen when writing limit attributes
DIV_ROUND_CLOSEST() after kstrtoul() results in an overflow if a large
number such as 18446744073709551615 is provided by the user.
Fix it by reordering clamp_val() and DIV_ROUND_CLOSEST() operations.
Signed-off-by: Pei Xiao <xiaopei01@kylinos.cn>
Fixes: c3963bc0a0cf ("hwmon: (nct6775) Split core and platform driver")
Message-ID: <7d5084cea33f7c0fd0578c59adfff71f93de94d9.1731375425.git.xiaopei01@kylinos.cn>
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