diff options
author | Vadim Pasternak <vadimp@mellanox.com> | 2017-11-01 12:10:42 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-01 12:40:58 +0100 |
commit | d70eaa386bf9ecc1e5b3002f64eb59172fcec4fd (patch) | |
tree | e7ec45ab653b8941a19d360e22d2e9af8000ecb2 /drivers/net/tap.c | |
parent | Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klasse... (diff) | |
download | linux-d70eaa386bf9ecc1e5b3002f64eb59172fcec4fd.tar.xz linux-d70eaa386bf9ecc1e5b3002f64eb59172fcec4fd.zip |
mlxsw: i2c: Fix buffer increment counter for write transaction
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 <vadimp@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tap.c')
0 files changed, 0 insertions, 0 deletions