]> git.baikalelectronics.ru Git - kernel.git/commit
aqc111: fix endianness issue in aqc111_change_mtu
authorOliver Neukum <oneukum@suse.com>
Thu, 9 May 2019 09:08:16 +0000 (11:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 May 2019 16:35:40 +0000 (09:35 -0700)
commitd7965a7dedcae32cf37ddceb9bba0cd8a703340c
treed4c2af4b3e7545a1b0d5092264daf41fbdd9245c
parent9ee0c73aca68ab5923fc5a91ff681a7a998e4238
aqc111: fix endianness issue in aqc111_change_mtu

If the MTU is large enough, the first write to the device
is just repeated. On BE architectures, however, the first
word of the command will be swapped a second time and garbage
will be written. Avoid that.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/aqc111.c