]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
usbnet: smsc95xx: fix memcpy for accessing rx-data
authorBen Dooks <ben.dooks@codethink.co.uk>
Wed, 14 Nov 2018 11:50:21 +0000 (11:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Nov 2018 04:16:19 +0000 (20:16 -0800)
commit6809d2167c404c2c8cbbbe1667c70ea88576ccac
tree3b502a77a0279b135148124a6c386aeff6cccf3a
parent0c8b26556c6f6abf84bca67ce2c2e010953bba81
usbnet: smsc95xx: fix memcpy for accessing rx-data

Change the RX code to use get_unaligned_le32() instead of the combo
of memcpy and cpu_to_le32s(&var).

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/smsc95xx.c