From 1b69a842833619ac071409d221d5dcdd5d576563 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sun, 12 Aug 2007 16:55:35 +0000 Subject: [PATCH] Fix an array overrun in lm93. Original patch by Hans J. Koch, backported from Linux 2.6. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4658 7894878c-1315-0410-8ee3-d5d059ff63e0 --- CHANGES | 1 + kernel/chips/lm93.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index b818f3ef..a581283d 100644 --- a/CHANGES +++ b/CHANGES @@ -6,6 +6,7 @@ SVN HEAD Speed up sensors_get_ignored() a bit Fix thmc50 support for Linux 2.6 Module i2c-piix4: Add ATI SB700 support (2.6 backport) + Module lm93: Fix an array overrun (2.6 backport) Program sensors-detect: Don't probe i2c-isa as a regular i2c bus diff --git a/kernel/chips/lm93.c b/kernel/chips/lm93.c index 5335ddb9..29b8df5e 100644 --- a/kernel/chips/lm93.c +++ b/kernel/chips/lm93.c @@ -303,7 +303,7 @@ struct lm93_data { u16 block5[4]; /* block6 has a lot of data we don't need */ - struct { u8 min; u8 max; } temp_lim[3]; + struct { u8 min; u8 max; } temp_lim[4]; /* vin1 - vin16: low and high limits */ struct { u8 min; u8 max; } block7[16];