USB: storage: properly handle the endian issues of idProduct
authorfangxiaozhi <huananhu@huawei.com>
Thu, 7 Feb 2013 07:32:07 +0000 (15:32 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Feb 2013 20:15:25 +0000 (12:15 -0800)
commitcd060956c5e97931c3909e4a808508469c0bb9f6
treef13fd4c93dd17b108527b9a80b08b2cae90b6285
parent9742aecda4d02976535051db4af4830bd98373a1
USB: storage: properly handle the endian issues of idProduct

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>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/storage/initializers.c