eth: asix88179: Fix receiving on big endian system
authorAlban Bedel <alban.bedel@avionic-design.de>
Wed, 3 Aug 2016 06:14:41 +0000 (08:14 +0200)
committerMarek Vasut <marex@denx.de>
Sun, 7 Aug 2016 19:55:43 +0000 (21:55 +0200)
commit50f5bb25b911fd5a876d17b8f08d432c7eff5cfe
tree55ca2a7369549438152b4fa8a70c7aa1ca5593fa
parent652b269468efe15053a989353aed9723c2484c55
eth: asix88179: Fix receiving on big endian system

In asix_recv() the call to convert the endianess of the receive header
was applied on the wrong variable. Instead of converting rx_hdr it
converted pkt_hdr which is a pointer, and not yet initialiazed at this
point.

Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
drivers/usb/eth/asix88179.c