hwmon: (adm1025) Fix overflows seen when writing voltage limits
authorGuenter Roeck <linux@roeck-us.net>
Sat, 3 Dec 2016 19:07:14 +0000 (11:07 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 10 Dec 2016 05:54:28 +0000 (21:54 -0800)
commit7cb53e28b03006fa655632fe07b27a862f3f5cb5
treefa0877d08534be6fcc5beae3853dbdac78777ba6
parentdf60d7013c36f86f7653af387915019d7da49613
hwmon: (adm1025) Fix overflows seen when writing voltage limits

Writes into voltage limit attributes can overflow due to an unbound
multiplication.

Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/adm1025.c