USB: storage: properly handle the endian issues of idProduct
authorfangxiaozhi <huananhu@huawei.com>
Thu, 7 Feb 2013 07:32:07 +0000 (15:32 +0800)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 6 Mar 2013 03:23:54 +0000 (03:23 +0000)
commitd0d26e575d02c5ff51a9fb6fbe79de6fe7a6dd58
treece80df851f929eed43fefc19fc9e47d5d7f5406e
parent4413840e5c227b869aaf53d5f9d782e72636d9e1
USB: storage: properly handle the endian issues of idProduct

commit cd060956c5e97931c3909e4a808508469c0bb9f6 upstream.

1. The idProduct is little endian, so make sure its value to be
compatible with the current CPU. Make no break on big endian processors.

Signed-off-by: fangxiaozhi <huananhu@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/storage/initializers.c