diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2010-01-16 20:43:12 +0100 |
---|---|---|
committer | Jean Delvare <khali@linux-fr.org> | 2010-01-16 20:43:12 +0100 |
commit | b6a3195070fe1c12d0bb1099ffe997d8abf9f602 (patch) | |
tree | c53534397e22f9260820a635a3f3537d1a416748 /drivers/i2c/i2c-dev.c | |
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>
Diffstat (limited to 'drivers/i2c/i2c-dev.c')
0 files changed, 0 insertions, 0 deletions