| commit | b6a3195070fe1c12d0bb1099ffe997d8abf9f602 | [log] [tgz] |
|---|---|---|
| author | Roel Kluin <roel.kluin@gmail.com> | Sat Jan 16 20:43:12 2010 +0100 |
| committer | Jean Delvare <khali@linux-fr.org> | Sat Jan 16 20:43:12 2010 +0100 |
| tree | c53534397e22f9260820a635a3f3537d1a416748 | |
| parent | 0b2c3688445ff02d3f1bfffc6983417b28f8c3da [diff] |
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>