From: Jean Delvare Date: Thu, 25 Aug 2005 16:43:37 +0000 (+0200) Subject: [PATCH] hwmon: Off-by-one error in fscpos driver X-Git-Tag: v2.6.13~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fd1bb9baa394856b112e5edbfd3893d92dd1149;p=pandora-kernel.git [PATCH] hwmon: Off-by-one error in fscpos driver Coverity uncovered an off-by-one error in the fscpos driver, in function set_temp_reset(). Writing to the temp3_reset sysfs file will lead to an array overrun, in turn causing an I2C write to a random register of the FSC Poseidon chip. Additionally, writing to temp1_reset and temp2_reset will not work as expected. The fix is straightforward. Signed-off-by: Jean Delvare Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed