From: Hugh Dickins Date: Wed, 6 Aug 2008 17:21:18 +0000 (+0100) Subject: [SCSI] sd: fix USB devices incorrectly reporting DIF support X-Git-Tag: v2.6.27-rc4~33^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d211f052fa58a053639bc51501cb64421157d362;p=pandora-kernel.git [SCSI] sd: fix USB devices incorrectly reporting DIF support Some USB devices set the protect bit in the INQUIRY data which currently causes the DIF code in sd to assume (incorrectly) that they support READ_CAPACITY(16). Fix this (only for the time being) by making sure we only believe the protect bit in the inquiry data if the device claims conformance to SCSI-3 or above. Acked-by: Martin K. Petersen Signed-off-by: James Bottomley --- Reading git-diff-tree failed