mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-20 07:38:14 +01:00
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>
This commit is contained in:
parent
652b269468
commit
50f5bb25b9
@ -543,7 +543,7 @@ static int asix_recv(struct eth_device *eth)
|
|||||||
|
|
||||||
|
|
||||||
rx_hdr = *(u32 *)(recv_buf + actual_len - 4);
|
rx_hdr = *(u32 *)(recv_buf + actual_len - 4);
|
||||||
le32_to_cpus(&pkt_hdr);
|
le32_to_cpus(&rx_hdr);
|
||||||
|
|
||||||
pkt_cnt = (u16)rx_hdr;
|
pkt_cnt = (u16)rx_hdr;
|
||||||
hdr_off = (u16)(rx_hdr >> 16);
|
hdr_off = (u16)(rx_hdr >> 16);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user