From: Dave Hansen Date: Tue, 21 Apr 2009 23:43:27 +0000 (-0700) Subject: [SCSI] fix sign extension with 1.5TB usb-storage LBD=y X-Git-Tag: v2.6.30-rc5~53^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f76d151b010980d137bfdc736d1d8f64b489165;p=pandora-kernel.git [SCSI] fix sign extension with 1.5TB usb-storage LBD=y Shifting an unsigned char implicitly casts it to a signed int. This caused 'lba' to sign-extend and Linux would then try READ CAPACITY 16 which was not supported by at least one drive. Using the get_unaligned_be*() helpers keeps us from having to worry about how the extension might occur. Signed-off-by: Dave Hansen Reviewed-by: Matthew Wilcox Signed-off-by: James Bottomley --- Reading git-diff-tree failed