From: Marek Vasut Date: Tue, 4 Sep 2012 02:40:16 +0000 (+0200) Subject: mxs/spi: Increment the transfer length only if transfer succeeded X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~41^2~1^3~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=204e706fa2ac1a62ff6423039945eb567c6c7efc;p=pandora-kernel.git mxs/spi: Increment the transfer length only if transfer succeeded The transfer function incremented (struct spi_message)->actual_length unconditionally, even if the transfer failed. Rectify this by incrementing this only if transfer succeeded. Signed-off-by: Marek Vasut Signed-off-by: Mark Brown --- Reading git-diff-tree failed