diff options
author | Hans-Jürgen Koch <hjk@linutronix.de> | 2007-07-23 03:36:57 -0400 |
---|---|---|
committer | Mark M. Hoffman <mhoffman@lightlink.com> | 2007-07-30 21:04:13 -0400 |
commit | f08a34874f93d5081c735ffcb2f9071be9b5d270 (patch) | |
tree | f243afa3be5b81b7ef2501710f2ccca5e96cbfcf /drivers | |
parent | add77c64ca8b00dae5dc0a6be9eb89f1514d21ea (diff) |
hwmon: fix array overruns in lm93.c
This fixes an array overflow bug. We have 4 pairs of min/max temperature
limits, not 3.
Signed-off-by: Hans J. Koch <hjk@linutronix.de>
Acked-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/hwmon/lm93.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/lm93.c b/drivers/hwmon/lm93.c index 23edf4fe4221..d84f8bf6f284 100644 --- a/drivers/hwmon/lm93.c +++ b/drivers/hwmon/lm93.c | |||
@@ -234,7 +234,7 @@ struct lm93_data { | |||
234 | struct { | 234 | struct { |
235 | u8 min; | 235 | u8 min; |
236 | u8 max; | 236 | u8 max; |
237 | } temp_lim[3]; | 237 | } temp_lim[4]; |
238 | 238 | ||
239 | /* vin1 - vin16: low and high limits */ | 239 | /* vin1 - vin16: low and high limits */ |
240 | struct { | 240 | struct { |