]> git.baikalelectronics.ru Git - kernel.git/commit
usb: wusbcore: preserve endianness of cached descriptors
authorThomas Pugliese <thomas.pugliese@gmail.com>
Mon, 7 Oct 2013 15:07:51 +0000 (10:07 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 19 Oct 2013 12:19:21 +0000 (05:19 -0700)
commit556901811f290add5c1bfcce396ac60ca897a932
tree0848ebaf8648b8ed15abf40356cd2166038fce8e
parent76aeb364fe5354d4c224f954bef0c2eb38d4265a
usb: wusbcore: preserve endianness of cached descriptors

Do not overwrite the multi-byte fields of usb_wa_descriptor with their
cpu format values after reading the descriptor.  Leave the values as
__le16 and swap on use.  This is more consistent with other uses of USB
descriptors.

Signed-off-by: Thomas Pugliese <thomas.pugliese@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/hwa-hc.c
drivers/usb/wusbcore/wa-rpipe.c
include/linux/usb/wusb-wa.h