commit | 87cdfa9d60f4f40e6d71b04b10b36d9df3c89282 | [log] [tgz] |
---|---|---|
author | Guenter Roeck <linux@roeck-us.net> | Tue Dec 27 14:15:07 2016 -0800 |
committer | Guenter Roeck <linux@roeck-us.net> | Tue Jan 10 08:59:35 2017 -0800 |
tree | d1dabc0954c4c68cbd1d7736ee46558fa16947a5 | |
parent | f80e868cb92aa68b775c1aee434b440475f62d61 [diff] |
hwmon: (gl520sm) Fix overflows and crash seen when writing into limit attributes Writes into limit attributes can overflow due to multplications and additions with unbound input values. Writing into fan limit attributes can result in a crash with a division by zero if very large values are written and the fan divider is larger than 1. Signed-off-by: Guenter Roeck <linux@roeck-us.net>