Commit 6b101116ae445311031f3e9f91d3010d444b9845
Committed by
Jean Delvare
1 parent
2fe28ab51d
Exists in
master
and in
6 other branches
hwmon: (lm90) Add range check to set_update_interval
When writing the update_interval attribute, the parameter value was not range checked, which could cause an integer overflow and result in an arbitrary update interval. Fix by limiting the value range to <0, 100000>. Reported-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Jean Delvare <khali@linux-fr.org>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/hwmon/lm90.c