Skip to content

Commit

Permalink
hwmon: fix array overruns in lm93.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hans-Jürgen Koch authored and Mark M. Hoffman committed Jul 31, 2007
1 parent add77c6 commit f08a348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/lm93.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f08a348

Please sign in to comment.