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)
commitb8b277525e9df2fd2dc3d1f4fe01c6796bb107fc
treed4c2af4b3e7545a1b0d5092264daf41fbdd9245c
parent873017af778439f2f8e3d87f28ddb1fcaf244a76
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