]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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:59:07 +0000 (06:59 -0800)
commit12b64a247ef45dcd865a98d63bbae7355e51633b
tree644786180afcb75e9a1c25aae0cb4dbd8d8515d8
parent30361160bc12da86b9ce4c7c60bd68ff930eda76
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