[bsp]qemu-vexpress-a9 网卡驱动bug修复

This commit is contained in:
tangyuxin 2018-07-19 10:07:27 +08:00
parent 69c95944eb
commit 1bf9dea104
1 changed files with 1 additions and 1 deletions

View File

@ -466,7 +466,7 @@ struct pbuf *smc911x_emac_rx(rt_device_t dev)
tmplen = (pktlen + 3) / 4;
/* allocate pbuf */
p = pbuf_alloc(PBUF_LINK, tmplen * 4, PBUF_RAM);
p = pbuf_alloc(PBUF_RAW, tmplen * 4, PBUF_RAM);
if (p)
{
uint32_t *data = (uint32_t *)p->payload;