summaryrefslogtreecommitdiff
path: root/drivers/hwmon/g762.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2016-12-05 05:20:52 +0300
committerGuenter Roeck <linux@roeck-us.net>2016-12-12 22:33:44 +0300
commit59715f4d16c27985b6866ebdced76e4e9cd63c33 (patch)
tree67735f7f317298618673d75360c00079ea67593c /drivers/hwmon/g762.c
parentca1b10b8250247fb5f241d1cb894c102203378bb (diff)
downloadlinux-59715f4d16c27985b6866ebdced76e4e9cd63c33.tar.xz
hwmon: (emcw201) Fix overflows seen when writing into limit attributes
Writes into temperature and voltage limit attributes can overflow due to multiplications with unchecked parameters. Also, the input parameter to DIV_ROUND_CLOSEST() needis to be range checked. Reviewed-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/g762.c')
0 files changed, 0 insertions, 0 deletions