hwmon: fix array overruns in lm93.c
PATCH 1/1 hwmon: fix array overruns in lm93.c
From: Hans-J������rgen Koch <[email protected]>
This fixes an array overflow bug. We have 4 pairs of min/max temperature limits, not 3.
Signed-off-by Hans J. Koch <[email protected]>
Acked-by Jean Delvare <[email protected]>
Signed-off-by Mark M. Hoffman <[email protected]>
--- drivers/hwmon/lm93.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/hwmon/lm93.c +1 -1
@@ -234,7 +234,7 @@ struct lm93_data {struct {u8 min;u8 max; - } temp_lim[3 ]; + } temp_lim[4 ];/* vin1 - vin16: low and high limits */ struct {
Signature · 1 line
1.5.2.2
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors