mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
xhci: endianness xhci_calculate_intel_u2_timeout
An le16 is accessed without conversion.
This patch should be backported to kernels as old as 3.5, that contain
the commit e3567d2c15 "xhci: Add Intel
U1/U2 timeout policy."
Signed-off-by: Oliver Neukum <[email protected]>
Signed-off-by: Sarah Sharp <[email protected]>
CC: [email protected]
This commit is contained in:
parent
27c411c95a
commit
966e7a8541
1 changed files with 1 additions and 1 deletions
|
|
@ -4142,7 +4142,7 @@ static u16 xhci_calculate_intel_u2_timeout(struct usb_device *udev,
|
|||
(xhci_service_interval_to_ns(desc) > timeout_ns))
|
||||
timeout_ns = xhci_service_interval_to_ns(desc);
|
||||
|
||||
u2_del_ns = udev->bos->ss_cap->bU2DevExitLat * 1000;
|
||||
u2_del_ns = le16_to_cpu(udev->bos->ss_cap->bU2DevExitLat) * 1000ULL;
|
||||
if (u2_del_ns > timeout_ns)
|
||||
timeout_ns = u2_del_ns;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue