summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorAlban Bedel <alban.bedel@avionic-design.de>2016-08-03 06:14:41 (GMT)
committerMarek Vasut <marex@denx.de>2016-08-07 19:55:43 (GMT)
commit50f5bb25b911fd5a876d17b8f08d432c7eff5cfe (patch)
tree55ca2a7369549438152b4fa8a70c7aa1ca5593fa /drivers/usb
parent652b269468efe15053a989353aed9723c2484c55 (diff)
downloadu-boot-50f5bb25b911fd5a876d17b8f08d432c7eff5cfe.tar.xz
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/eth/asix88179.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/eth/asix88179.c b/drivers/usb/eth/asix88179.c
index 9e04c7c..81eae04 100644
--- a/drivers/usb/eth/asix88179.c
+++ b/drivers/usb/eth/asix88179.c
@@ -543,7 +543,7 @@ static int asix_recv(struct eth_device *eth)
rx_hdr = *(u32 *)(recv_buf + actual_len - 4);
- le32_to_cpus(&pkt_hdr);
+ le32_to_cpus(&rx_hdr);
pkt_cnt = (u16)rx_hdr;
hdr_off = (u16)(rx_hdr >> 16);