[PATCH] hwmon: Off-by-one error in fscpos driver
authorJean Delvare <khali@linux-fr.org>
Thu, 25 Aug 2005 16:43:37 +0000 (18:43 +0200)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 26 Aug 2005 23:31:46 +0000 (16:31 -0700)
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 <khali@linux-fr.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

No differences found