]> git.baikalelectronics.ru Git - kernel.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>
Fri, 8 Feb 2013 20:15:25 +0000 (12:15 -0800)
commit3686bebc2018e8e30613a26900378e1558b8fdc7
treef13fd4c93dd17b108527b9a80b08b2cae90b6285
parentae0eddffd8086056852325a57d1a853c217b4175
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