Dave Hansen
8f76d151b0
[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 <dave@linux.vnet.ibm.com>
Reviewed-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
2009-04-27 10:36:07 -05:00
..
2009-04-24 10:42:29 -04:00
2009-04-17 19:05:33 -04:00
2009-04-13 15:04:33 -07:00
2009-04-21 19:40:00 -07:00
2009-04-24 08:54:21 +02:00
2009-04-24 13:28:30 -07:00
2009-04-21 13:41:47 -07:00
2009-04-07 08:31:11 -07:00
2009-04-07 08:31:11 -07:00
2009-04-21 13:41:51 -07:00
2009-04-07 08:31:11 -07:00
2009-04-03 15:24:35 -07:00
2009-04-24 00:42:06 -04:00
2009-04-03 15:25:44 -07:00
2009-04-13 15:04:29 -07:00
2009-04-13 17:02:14 +02:00
2009-04-23 22:53:45 +02:00
2009-04-07 08:31:10 -07:00
2009-04-07 08:31:11 -07:00
2009-04-27 10:09:54 -05:00
2009-04-21 13:41:49 -07:00
2009-04-17 10:50:27 -07:00
2009-04-08 14:13:48 +01:00
2009-04-19 23:14:01 +09:30
2009-04-24 08:16:05 -07:00
2009-04-20 08:37:37 -07:00
2009-04-24 08:36:06 -07:00
2009-04-07 08:31:11 -07:00
2009-04-21 13:41:50 -07:00
2009-04-05 00:32:25 +02:00
2009-04-21 13:41:50 -07:00
2009-04-08 20:45:51 +02:00
2009-04-24 07:52:08 -07:00
2009-04-24 07:46:51 -07:00
2009-04-05 11:04:19 -07:00
2009-04-14 08:48:50 -07:00
2009-04-07 08:44:06 -07:00
2009-04-13 11:35:50 -07:00
2009-04-23 23:25:40 +01:00
2009-04-24 01:34:52 -04:00
2009-04-07 08:31:12 -07:00
2009-04-08 17:45:02 -07:00
2009-04-07 08:31:11 -07:00
2009-04-21 13:41:50 -07:00
2009-04-27 10:07:37 -05:00
2009-04-14 19:46:19 -07:00
2009-04-27 10:36:07 -05:00
2009-04-24 07:52:08 -07:00
2009-04-06 08:55:19 -07:00
2009-04-07 08:31:10 -07:00
2009-04-21 13:41:49 -07:00
2009-04-21 21:47:22 +02:00
2009-04-16 16:17:11 -07:00
2009-04-23 14:15:31 -07:00
2009-04-07 08:31:11 -07:00
2009-04-21 13:41:47 -07:00
2009-04-19 23:14:01 +09:30
2009-04-05 00:32:22 +02:00
2009-04-23 23:25:41 +01:00
2009-04-08 14:25:51 -07:00