summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--components/net/lwip-1.4.1/src/netif/ethernetif.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/net/lwip-1.4.1/src/netif/ethernetif.c b/components/net/lwip-1.4.1/src/netif/ethernetif.c
index f0b2f814dc..f0c28ecf06 100644
--- a/components/net/lwip-1.4.1/src/netif/ethernetif.c
+++ b/components/net/lwip-1.4.1/src/netif/ethernetif.c
@@ -367,6 +367,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)
{