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-10-28 17:46:02 +09:00
2008-11-01 09:49:46 -07:00
2008-10-26 10:27:01 +01:00
2008-10-22 01:19:39 +02:00
2008-11-01 09:49:46 -07:00
2008-10-30 15:55:47 +01:00
2008-11-02 21:40:10 +01:00
2008-11-01 09:49:46 -07:00
2008-11-01 09:50:12 -07:00
2008-08-26 00:19:28 +10:00
2008-10-21 07:48:33 -04:00
2008-11-01 09:50:12 -07:00
2008-11-04 08:18:19 -08:00
2008-10-16 11:21:30 -07:00
2008-11-04 08:18:19 -08:00
2008-11-01 09:49:46 -07:00
2008-11-04 08:18:19 -08:00
2008-11-01 09:49:46 -07:00
2008-11-01 09:49:46 -07:00
2008-11-01 12:40:38 -07:00
2008-11-04 08:18:19 -08:00
2008-10-28 21:47:17 +00:00