diff --git a/CHANGES b/CHANGES index 4cacad8e..da3d6d68 100644 --- a/CHANGES +++ b/CHANGES @@ -14,6 +14,7 @@ SVN-HEAD Program decode-vaio.pl: Private data might not be readable by non-root users Print the asset tag Fix the timestamp decoding + Program i2cdump: Fix I2C block mode error code Program pwmconfig: Better diagnostics in pwmdisable Give the fans some time to spin up Really hide errors on sysfs writes diff --git a/prog/dump/i2cdump.c b/prog/dump/i2cdump.c index 062257a2..f677b58d 100644 --- a/prog/dump/i2cdump.c +++ b/prog/dump/i2cdump.c @@ -313,8 +313,10 @@ int main(int argc, char *argv[]) for (res = 0; res < 256; res += i) { i = i2c_smbus_read_i2c_block_data(file, res, 32, cblock + res); - if (i <= 0) + if (i <= 0) { + res = i; break; + } } } if (res <= 0) {