hwmon: fix array overruns in lm93.c
authorHans-Jürgen Koch <hjk@linutronix.de>
Mon, 23 Jul 2007 07:36:57 +0000 (09:36 +0200)
committerMark M. Hoffman <mhoffman@lightlink.com>
Tue, 31 Jul 2007 01:04:13 +0000 (21:04 -0400)
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>
drivers/hwmon/lm93.c

index 23edf4fe422142eed31a6f9c26d9633951252da6..d84f8bf6f28476edf6c8e422eb675972af44acc1 100644 (file)
@@ -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 {
This page took 0.026232 seconds and 5 git commands to generate.