diff options
author | Guenter Roeck <linux@roeck-us.net> | 2024-07-06 23:50:08 -0700 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2024-07-07 07:48:25 -0700 |
commit | 0403e10bf0824bf0ec2bb135d4cf1c0cc3bf4bf0 (patch) | |
tree | 1fd955da298e2d75b8579d4c678d7d8066ce3c56 /sound/isa/sc6000.c | |
parent | af64e3e1537896337405f880c1e9ac1f8c0c6198 (diff) |
hwmon: (nct6775-core) 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 'sound/isa/sc6000.c')
0 files changed, 0 insertions, 0 deletions