OSDN Git Service

hwmon: (gl518sm) Fix overflows seen when writing into limit attributes
authorGuenter Roeck <linux@roeck-us.net>
Tue, 27 Dec 2016 22:15:06 +0000 (14:15 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 10 Jan 2017 16:58:36 +0000 (08:58 -0800)
commitf80e868cb92aa68b775c1aee434b440475f62d61
treeae837eb3fe1fa2699d8b6e54daf592c995323610
parent07cc189d160ba962c5d9078453929ffac0e739f3
hwmon: (gl518sm) Fix overflows seen when writing into limit attributes

Writes into limit attributes can overflow due to additions and
multiplications with unchecked parameters.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/gl518sm.c