diff --git a/components/net/lwip-2.0.2/src/netif/ethernetif.c b/components/net/lwip-2.0.2/src/netif/ethernetif.c index 09d6140b16e8fdbebe4806d305ff32e64b0e913c..a2f1be36416c952d67fbf1d19c943718d10cdcc6 100644 --- a/components/net/lwip-2.0.2/src/netif/ethernetif.c +++ b/components/net/lwip-2.0.2/src/netif/ethernetif.c @@ -391,6 +391,8 @@ static void eth_rx_thread_entry(void* parameter) /* receive all of buffer */ while (1) { + if(device->eth_rx == RT_NULL) break; + p = device->eth_rx(&(device->parent)); if (p != RT_NULL) {