From: Miquel van Smoorenburg Date: Tue, 4 Nov 2008 23:09:12 +0000 (+0100) Subject: SCSI: dpt_i2o: fix transferred data length for scsi_set_resid() X-Git-Tag: v2.6.27.7~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9e53b238e2d99094b2158a7d85170ba7dd8eeb8;p=pandora-kernel.git SCSI: dpt_i2o: fix transferred data length for scsi_set_resid() commit df81d2371aeca0f7474f197a3090830899016e39 upstream. dpt_i2o.c::adpt_i2o_to_scsi() reads the value at (reply+5) which should contain the length in bytes of the transferred data. This would be correct if reply was a u32 *. However it is a void * here, so we need to read the value at (reply+20) instead. The value at (reply+5) is usually 0xff0000, which is apparently 'large enough' and didn't cause any trouble until 2.6.27 where commit 427e59f09fdba387547106de7bab980b7fff77be Author: James Bottomley Date: Sat Mar 8 18:24:17 2008 -0600 [SCSI] make use of the residue value caused this to become visible through e.g. iostat -x . Signed-off-by: Miquel van Smoorenburg Signed-off-by: James Bottomley Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed