From: Fan Du Date: Tue, 16 Sep 2014 09:21:04 +0000 (+0800) Subject: i2c: ismt: use correct length when copy buffer X-Git-Tag: fixes-for-v3.18-merge-window~67^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=979bbf7b7ae75cfc06e09d09eda38009a3bdc4a4;p=pandora-kernel.git 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 Acked-by: Neil Horman Signed-off-by: Wolfram Sang Cc: stable@kernel.org --- Reading git-diff-tree failed