提交 e4e78546 编写于 作者: C Caoruihong 提交者: Gitee

fix #I2E09L

上级 5ba30a2a
......@@ -176,7 +176,7 @@ eth_drv_send(struct netif *usb_netif, struct pbuf *p)
sg_list[sg_len++].len = q->len;
}
(drv_sc->funs->send) (sc, sg_list, sg_len, p->tot_len, (UINTPTR)p);
(drv_sc->funs->send) (sc, sg_list, sg_len, p ? p->tot_len : 0, (UINTPTR)p);
}
const struct los_eth_funs eth_drv_funs_usb = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册