Home
last modified time | relevance | path

Searched hist:"64 bd708ae0edced5eee764c2321b280bc1e16550" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/hwmon/
H A Dadt7470.cdiff 64bd708ae0edced5eee764c2321b280bc1e16550 Sat Dec 03 13:10:34 CST 2016 Guenter Roeck <linux@roeck-us.net> 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>