From: Bart Van Assche Date: Wed, 9 Jul 2014 13:57:51 +0000 (+0200) Subject: IB/srp: Fix residual handling X-Git-Tag: omap-for-v3.17/fixes-against-rc2~62^2^11~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e714531a349f614885ca11f68c38270940c5e915;p=pandora-kernel.git IB/srp: Fix residual handling From Documentation/scsi/scsi_mid_low_api.txt: "resid - an LLD should set this signed integer to the requested transfer length (i.e. 'request_bufflen') less the number of bytes that are actually transferred." This means that resid > 0 in case of an underrun and also that resid < 0 in case of an overrun. Modify the SRP initiator code such that it matches this requirement. Signed-off-by: Bart Van Assche Reviewed-by: Sagi Grimberg Reviewed-by: David Dillow Signed-off-by: Roland Dreier --- Reading git-diff-tree failed