summaryrefslogtreecommitdiff
path: root/sound/isa/sc6000.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2024-07-06 23:50:08 -0700
committerGuenter Roeck <linux@roeck-us.net>2024-07-07 07:48:25 -0700
commit0403e10bf0824bf0ec2bb135d4cf1c0cc3bf4bf0 (patch)
tree1fd955da298e2d75b8579d4c678d7d8066ce3c56 /sound/isa/sc6000.c
parentaf64e3e1537896337405f880c1e9ac1f8c0c6198 (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