diff options
author | Hans de Goede <hdegoede@redhat.com> | 2014-09-11 05:06:12 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-11 17:21:43 -0400 |
commit | a79e5bc53a9519202dfad7d916761601fcbf8db1 (patch) | |
tree | d52bafb1fbfda9711faeff1239d5050a9cd3317d | |
parent | 233c7daf4eecd1e992dc42591182cd4a892e687c (diff) |
uas: Add missing le16_to_cpu calls to asm1051 / asm1053 usb-id check
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Cc: stable@vger.kernel.org # 3.16
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/usb/storage/uas-detect.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/storage/uas-detect.h b/drivers/usb/storage/uas-detect.h index 1e298ec4f4d0..8a6f371ed6e7 100644 --- a/drivers/usb/storage/uas-detect.h +++ b/drivers/usb/storage/uas-detect.h | |||
@@ -73,8 +73,8 @@ static int uas_use_uas_driver(struct usb_interface *intf, | |||
73 | * broken on the ASM1051, use the number of streams to differentiate. | 73 | * broken on the ASM1051, use the number of streams to differentiate. |
74 | * New ASM1053-s also support 32 streams, but have a different prod-id. | 74 | * New ASM1053-s also support 32 streams, but have a different prod-id. |
75 | */ | 75 | */ |
76 | if (udev->descriptor.idVendor == 0x174c && | 76 | if (le16_to_cpu(udev->descriptor.idVendor) == 0x174c && |
77 | udev->descriptor.idProduct == 0x55aa) { | 77 | le16_to_cpu(udev->descriptor.idProduct) == 0x55aa) { |
78 | if (udev->speed < USB_SPEED_SUPER) { | 78 | if (udev->speed < USB_SPEED_SUPER) { |
79 | /* No streams info, assume ASM1051 */ | 79 | /* No streams info, assume ASM1051 */ |
80 | flags |= US_FL_IGNORE_UAS; | 80 | flags |= US_FL_IGNORE_UAS; |