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-09 08:56:13 +02:00
2008-10-23 11:42:16 -05:00
2008-07-27 10:31:49 -04:00
2008-10-20 08:52:42 -07:00
2008-08-07 09:55:48 +01:00
2008-10-23 11:42:11 -05:00
2008-08-23 12:14:12 -07:00
2008-10-13 09:28:48 -04:00
2008-10-10 10:52:45 -07:00
2008-10-13 09:28:57 -04:00
2008-11-01 09:49:46 -07:00
2008-10-13 14:12:40 -07:00
2008-11-05 12:42:29 -05:00
2008-10-13 09:28:59 -04:00
2008-10-09 08:56:13 +02:00
2008-10-23 11:42:18 -05:00
2008-07-26 15:15:00 -04:00
2008-10-23 11:42:17 -05:00
2008-07-15 14:30:56 -07:00
2008-07-27 10:31:49 -04:00
2008-10-16 16:52:06 +02:00
2008-10-14 10:23:27 -07:00
2008-10-16 09:24:44 -07:00
2008-10-13 09:28:48 -04:00
2008-11-15 11:10:14 -06:00
2008-07-15 18:58:04 -07:00
2008-08-29 02:13:10 -07:00
2008-10-17 23:07:38 +02:00
2008-10-09 08:56:13 +02:00
2008-10-09 08:56:13 +02:00
2008-10-09 08:56:13 +02:00
2008-10-09 08:56:13 +02:00
2008-10-03 11:46:12 -05:00
2008-08-05 18:16:58 +02:00
2008-10-21 07:48:46 -04:00
2008-07-27 10:31:49 -04:00
2008-10-23 13:02:03 -07:00
2008-07-27 10:31:49 -04:00
2008-10-09 08:56:13 +02:00
2008-08-23 12:14:12 -07:00
2008-10-13 09:29:00 -04:00
2008-07-12 08:22:20 -05:00
2008-10-14 10:23:27 -07:00
2008-10-13 09:29:01 -04:00
2008-07-27 10:31:49 -04:00
2008-07-26 15:14:56 -04:00
2008-11-05 12:40:23 -05:00
2008-11-05 12:40:23 -05:00
2008-10-09 08:56:13 +02:00
2008-07-27 10:31:49 -04:00
2008-08-23 12:14:12 -07:00
2008-08-23 12:14:12 -07:00
2008-10-16 09:24:44 -07:00
2008-07-27 10:31:49 -04:00
2008-10-09 08:56:13 +02:00
2008-10-11 12:39:35 -07:00
2008-08-29 02:14:46 -07:00
2008-07-27 10:31:49 -04:00
2008-07-27 10:31:49 -04:00
2008-11-05 12:48:23 -05:00
2008-10-21 07:47:28 -04:00
2008-10-23 11:42:16 -05:00
2008-10-23 11:42:17 -05:00
2008-10-13 09:28:52 -04:00
2008-10-03 11:46:12 -05:00
2008-10-13 09:28:46 -04:00
2008-10-10 10:53:26 -07:00
2008-10-10 10:53:26 -07:00
2008-07-27 10:31:49 -04:00
2008-10-13 09:28:47 -04:00
2008-10-13 09:28:59 -04:00
2008-07-27 10:31:49 -04:00
2008-10-13 09:28:52 -04:00
2008-10-13 09:28:46 -04:00
2008-10-13 09:28:58 -04:00
2008-10-23 13:02:03 -07:00
2008-10-15 08:41:28 -04:00
2008-07-30 10:21:56 -05:00
2008-11-01 09:49:46 -07:00
2008-10-20 08:52:41 -07:00
2008-10-21 07:48:50 -04:00
2008-10-21 07:47:28 -04:00
2008-07-26 15:14:49 -04:00
2008-10-23 11:42:19 -05:00
2008-08-31 01:23:17 -07:00
2008-10-03 11:46:12 -05:00
2008-07-27 10:31:49 -04:00
2008-07-27 10:31:49 -04:00