Miquel van Smoorenburg df81d2371a [SCSI] dpt_i2o: fix transferred data length for scsi_set_resid()
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 <James.Bottomley@HansenPartnership.com>
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 <mikevs@xs4all.net>
Cc: Stable Tree <stable@kernel.org>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
2008-11-15 11:10:14 -06:00
..
2008-01-11 18:22:30 -06:00
2006-09-12 17:12:31 -05:00
2006-09-12 17:12:31 -05:00
2008-10-16 16:52:06 +02:00
2008-01-30 13:14:02 -06:00
2008-08-29 02:13:10 -07:00
2008-10-09 08:56:13 +02:00
2008-10-09 08:56:13 +02:00
2006-09-12 17:12:31 -05:00
2008-01-30 13:14:02 -06:00
2008-10-21 07:48:46 -04:00
2008-10-09 08:56:13 +02:00
2008-10-14 10:23:27 -07:00
2008-01-30 13:14:02 -06:00
2006-09-12 17:12:31 -05:00
2008-01-30 13:14:02 -06:00
2008-01-23 13:44:31 -06:00
2008-01-30 13:14:02 -06:00
2008-10-23 11:42:17 -05:00
2007-07-18 11:16:32 -05:00
2008-07-02 15:06:25 -06:00
2008-07-30 10:21:56 -05:00
2008-11-01 09:49:46 -07:00
2008-10-21 07:48:50 -04:00
2008-02-07 18:02:44 -06:00
2008-07-26 15:14:49 -04:00
2008-10-23 11:42:19 -05:00
2006-11-15 16:43:50 -06:00
2007-10-19 23:22:55 +02:00