i2c: Test off by one in {piix4,vt596}_transaction()
authorRoel Kluin <roel.kluin@gmail.com>
Sat, 16 Jan 2010 19:43:12 +0000 (20:43 +0100)
committerJean Delvare <khali@linux-fr.org>
Sat, 16 Jan 2010 19:43:12 +0000 (20:43 +0100)
commitb6a3195070fe1c12d0bb1099ffe997d8abf9f602
treec53534397e22f9260820a635a3f3537d1a416748
parent0b2c3688445ff02d3f1bfffc6983417b28f8c3da
i2c: Test off by one in {piix4,vt596}_transaction()

With `while (timeout++ < MAX_TIMEOUT)' timeout reaches MAX_TIMEOUT + 1
after the loop. This is probably unlikely to produce a problem.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/busses/i2c-piix4.c
drivers/i2c/busses/i2c-viapro.c