Skip to content

Commit

Permalink
uas: Add missing le16_to_cpu calls to asm1051 / asm1053 usb-id check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hans de Goede authored and Greg Kroah-Hartman committed Sep 11, 2014
1 parent 233c7da commit a79e5bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/usb/storage/uas-detect.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ static int uas_use_uas_driver(struct usb_interface *intf,
* broken on the ASM1051, use the number of streams to differentiate.
* New ASM1053-s also support 32 streams, but have a different prod-id.
*/
if (udev->descriptor.idVendor == 0x174c &&
udev->descriptor.idProduct == 0x55aa) {
if (le16_to_cpu(udev->descriptor.idVendor) == 0x174c &&
le16_to_cpu(udev->descriptor.idProduct) == 0x55aa) {
if (udev->speed < USB_SPEED_SUPER) {
/* No streams info, assume ASM1051 */
flags |= US_FL_IGNORE_UAS;
Expand Down

0 comments on commit a79e5bc

Please sign in to comment.