提交 f08a3487 编写于 作者: H Hans-Jürgen Koch 提交者: Mark M. Hoffman

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: NHans J. Koch <hjk@linutronix.de>
Acked-by: NJean Delvare <khali@linux-fr.org>
Signed-off-by: NMark M. Hoffman <mhoffman@lightlink.com>
上级 add77c64
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册