Skip to contentSkip to conversation

hwmon: fix array overruns in lm93.c

PATCH New Mark M. Hoffman 1 participant 1 message Jul 31, 2007 Hardware monitoring

lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/hwmon/lm93.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/hwmon/lm93.c +1 -1
index 23edf4f..d84f8bf 100644
@@ -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