summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/lm93.c
diff options
context:
space:
mode:
authorHans-Jürgen Koch <hjk@linutronix.de>2007-07-23 09:36:57 +0200
committerMark M. Hoffman <mhoffman@lightlink.com>2007-07-31 03:04:13 +0200
commitf08a34874f93d5081c735ffcb2f9071be9b5d270 (patch)
treef243afa3be5b81b7ef2501710f2ccca5e96cbfcf /drivers/hwmon/lm93.c
parenthwmon: add support for THMC50 and ADM1022 (diff)
downloadlinux-f08a34874f93d5081c735ffcb2f9071be9b5d270.tar.xz
linux-f08a34874f93d5081c735ffcb2f9071be9b5d270.zip
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/hwmon/lm93.c')
-rw-r--r--drivers/hwmon/lm93.c2
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 {
struct {
u8 min;
u8 max;
- } temp_lim[3];
+ } temp_lim[4];
/* vin1 - vin16: low and high limits */
struct {