From: Alan Stern Date: Tue, 24 Jun 2008 18:03:14 +0000 (-0400) Subject: [SCSI] erase invalid data returned by device X-Git-Tag: v2.6.26~6^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdb2b8cab4392ce41ddfbd6773a3da3334daf836;p=pandora-kernel.git [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 Tested-by: Peter Teoh Signed-off-by: James Bottomley --- Reading git-diff-tree failed