summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/sht3x.c
diff options
context:
space:
mode:
authorGuenter Roeck2016-12-03 20:10:34 +0100
committerGuenter Roeck2016-12-10 06:54:32 +0100
commit64bd708ae0edced5eee764c2321b280bc1e16550 (patch)
tree4b07a781cd168dd86fa3e5905ed5a605e2262c5c /drivers/hwmon/sht3x.c
parenthwmon: (adt7462) Fix overflows seen when writing into limit attributes (diff)
downloadkernel-qcow2-linux-64bd708ae0edced5eee764c2321b280bc1e16550.tar.gz
kernel-qcow2-linux-64bd708ae0edced5eee764c2321b280bc1e16550.tar.xz
kernel-qcow2-linux-64bd708ae0edced5eee764c2321b280bc1e16550.zip
hwmon: (adt7470) Fix overflows seen when writing into limit attributes
Fix overflows seen when writing large values into various temperature limit attributes. The input value passed to DIV_ROUND_CLOSEST() needs to be clamped to avoid such overflows. Reviewed-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/sht3x.c')
0 files changed, 0 insertions, 0 deletions