hwmon: (dme1737) Fix overflows seen when writing into limit attributes
authorGuenter Roeck <linux@roeck-us.net>
Tue, 27 Dec 2016 22:15:05 +0000 (14:15 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 10 Jan 2017 16:57:55 +0000 (08:57 -0800)
commit07cc189d160ba962c5d9078453929ffac0e739f3
treecad8b4f16b5b60e9f5f341c6c98a636e94cd6f6d
parent53e678d75e7c22b251c6981ff8364b5c42c5eac4
hwmon: (dme1737) Fix overflows seen when writing into limit attributes

Writes into voltage limit, temperature limit, temperature hysteresis,
and temperature zone attributes can overflow due to unclamped parameters
to multiplications, additions, and subtractions.

Cc: Juerg Haefliger <juergh@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/dme1737.c