From 1bf9dea104cd5b14f28bb3ec68f2e2d5255e0368 Mon Sep 17 00:00:00 2001 From: tangyuxin <462747508@qq.com> Date: Thu, 19 Jul 2018 10:07:27 +0800 Subject: [PATCH] =?UTF-8?q?[bsp]qemu-vexpress-a9=20=E7=BD=91=E5=8D=A1?= =?UTF-8?q?=E9=A9=B1=E5=8A=A8bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/qemu-vexpress-a9/drivers/drv_smc911x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsp/qemu-vexpress-a9/drivers/drv_smc911x.c b/bsp/qemu-vexpress-a9/drivers/drv_smc911x.c index 4b33cc421..715cbfb75 100644 --- a/bsp/qemu-vexpress-a9/drivers/drv_smc911x.c +++ b/bsp/qemu-vexpress-a9/drivers/drv_smc911x.c @@ -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; -- GitLab