aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_dynamic_debug.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2024-07-06 23:48:42 -0700
committerGuenter Roeck <linux@roeck-us.net>2024-07-07 07:48:25 -0700
commitaf64e3e1537896337405f880c1e9ac1f8c0c6198 (patch)
tree49fa07551ff672e17b2169a4054e57c8cc21279c /lib/test_dynamic_debug.c
parenthwmon: (adc128d818) Fix underflows seen when writing limit attributes (diff)
downloadlinux-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 'lib/test_dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions