]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: ismt: use correct length when copy buffer
authorFan Du <fan.du@intel.com>
Tue, 16 Sep 2014 09:21:04 +0000 (17:21 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Sat, 20 Sep 2014 12:56:19 +0000 (14:56 +0200)
commit0cd97b62e2b1b6951a3147ebd5a36b5059864241
tree21a516ee7c162ac5d7b7718aec594a729e875087
parent84491510166438fb3ecde54ed7de82fbdf799552
i2c: ismt: use correct length when copy buffer

In block write mode, when encapsulating dma_buffer, first element is
'command', the rest is data buffer, so only copy actual data buffer
starting from block[1] with the size indicating by block[0].

Signed-off-by: Fan Du <fan.du@intel.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Cc: stable@kernel.org
drivers/i2c/busses/i2c-ismt.c