Merge pull request #1645 from enkiller/dev

[bsp]qemu-vexpress-a9 网卡驱动bug修复
This commit is contained in:
Bernard Xiong 2018-07-19 12:57:59 +08:00 committed by GitHub
commit 8aeb87222e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;