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

hso: driver fix for big endian machines.

Filip Aben says this fix is neccessary for big endian machines.

Signed-off-by: Denis Joseph Barrow <D.Barow@option.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Denis Joseph Barrow and committed by
David S. Miller
b74f62c1 a73be040

+2 -2
+2 -2
drivers/net/usb/hso.c
··· 1792 1792 1793 1793 /* initialize */ 1794 1794 ctrl_req->wValue = 0; 1795 - ctrl_req->wIndex = hso_port_to_mux(port); 1796 - ctrl_req->wLength = size; 1795 + ctrl_req->wIndex = cpu_to_le16(hso_port_to_mux(port)); 1796 + ctrl_req->wLength = cpu_to_le16(size); 1797 1797 1798 1798 if (type == USB_CDC_GET_ENCAPSULATED_RESPONSE) { 1799 1799 /* Reading command */