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>
Thu, 28 Feb 2013 14:32:28 +0000 (06:32 -0800)
commitba18450b8528ed69d71b3cb8dbdecb08d9272c72
tree6504fc3e6a54effa4f4c5abf294cfa36c9f2b81b
parente39d97f98e39ecb860d113ad75fa250bc52d247b
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>
drivers/usb/storage/initializers.c