Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: octeon-usb: fix endianness bug

wHubCharacteristics gets wrong value on big-endian CPUs.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Aaro Koskinen and committed by
Greg Kroah-Hartman
e5873388 8dcf4ece

+1 -1
+1 -1
drivers/staging/octeon-usb/octeon-hcd.c
··· 3628 3628 desc->bDescLength = 9; 3629 3629 desc->bDescriptorType = 0x29; 3630 3630 desc->bNbrPorts = 1; 3631 - desc->wHubCharacteristics = 0x08; 3631 + desc->wHubCharacteristics = cpu_to_le16(0x08); 3632 3632 desc->bPwrOn2PwrGood = 1; 3633 3633 desc->bHubContrCurrent = 0; 3634 3634 desc->u.hs.DeviceRemovable[0] = 0;