Alan Stern bdb2b8cab4 [SCSI] erase invalid data returned by device
This patch (as1108) fixes a problem that can occur with certain USB
mass-storage devices: They return invalid data together with a residue
indicating that the data should be ignored.  Rather than leave the
invalid data in a transfer buffer, where it can get misinterpreted,
the patch clears the invalid portion of the buffer.

This solves a problem (wrong write-protect setting detected) reported
by Maciej Rutecki and Peter Teoh.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Tested-by: Peter Teoh <htmldeveloper@gmail.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
2008-07-06 11:33:08 -05:00
..
2008-06-15 11:12:20 -05:00
2008-01-11 18:22:30 -06:00
2008-01-30 13:14:02 -06:00
2008-05-20 13:31:56 -07:00
2008-01-30 13:14:02 -06:00
2008-04-28 23:44:41 +02:00
2008-01-11 18:27:59 -06:00
2008-01-30 13:03:40 -06:00
2008-01-30 13:14:02 -06:00
2008-04-27 12:19:57 -05:00
2008-04-29 08:06:18 -07: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
2007-10-19 11:53:42 -07:00
2008-05-20 13:31:56 -07:00
2008-01-30 13:14:02 -06:00
2008-02-23 09:07:32 -06:00
2008-06-24 12:02:27 -05:00
2008-05-20 13:31:56 -07:00
2008-02-07 18:02:44 -06:00
2008-05-20 13:31:56 -07:00
2007-10-19 23:22:55 +02:00
2008-01-30 13:14:02 -06:00