]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usbcore: fix incorrect type in assignment in usb_set_lpm_parameters()
authorXenia Ragiadakou <burzalodowa@gmail.com>
Sat, 31 Aug 2013 15:09:13 +0000 (18:09 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Sep 2013 16:49:24 +0000 (09:49 -0700)
commit4d96799524159f7c3e774a7b45a308780a26dc4d
tree5fe14608b17644ff0296debcb41cfcd0096efe24
parent9df89d85b407690afa46ddfbccc80bec6869971d
usbcore: fix incorrect type in assignment in usb_set_lpm_parameters()

In the bos usb_ss_cap_descriptor structure, bU2DevExitLat is of type __le16.
This value is used as it is, without being first converted to the CPU
byteorder, for the setup of usb device's usb3_lpm_parameters.
This patch fixes that by converting bU2DevExitLat field to the CPU byteorder
before the assignmenment to [udev/hub]_u2_del variables.

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hub.c