FUJITA Tomonori 67768f675f [SCSI] ps3rom: fix wrong resid calculation bug
sg driver rounds up the length in struct scatterlist to be a multiple
of 512 in some conditions. So LLDs can't use the data length in a sg
list to calculate residual. Instead, the length in struct scsi_cmnd
should be used.

[Geert: the variable buflen already contains scsi_bufflen(cmd)]

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
2008-03-03 13:06:37 -06:00
..
2008-02-22 16:50:29 -08:00
2008-02-05 09:44:23 -08:00
2008-02-06 10:41:15 -08:00
2008-02-08 09:22:38 -08:00
2008-02-19 15:52:27 -08:00
2008-02-07 08:42:23 -08:00
2008-02-14 21:13:33 -08:00
2008-02-13 16:21:19 -08:00
2008-02-23 17:12:14 -08:00
2008-02-23 17:12:14 -08:00
2008-02-03 17:30:25 +02:00
2008-02-21 15:27:07 -08:00