Re: [patch net] mlxsw: i2c: Fix buffer increment counter for write transaction

2017-11-01 Thread David Miller
From: Jiri Pirko Date: Wed, 1 Nov 2017 12:10:42 +0100 > From: Vadim Pasternak > > It fixes a problem for the last chunk where 'chunk_size' is smaller than > MLXSW_I2C_BLK_MAX and data is copied to the wrong offset, overriding > previous data. > > Fixes: 6882b0aee180 ("mlxsw: Introduce support

[patch net] mlxsw: i2c: Fix buffer increment counter for write transaction

2017-11-01 Thread Jiri Pirko
From: Vadim Pasternak It fixes a problem for the last chunk where 'chunk_size' is smaller than MLXSW_I2C_BLK_MAX and data is copied to the wrong offset, overriding previous data. Fixes: 6882b0aee180 ("mlxsw: Introduce support for I2C bus") Signed-off-by: Vadim Pasternak Reviewed-by: Ido Schimme