diff options
| author | Urey <[email protected]> | 2016-09-23 17:00:31 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2016-09-23 17:00:31 +0800 |
| commit | 8979d70a694f852c779b02a087962771cacae53e (patch) | |
| tree | 3a95c069689893f5856178744da8b4910c4eaf6d /components/net | |
| parent | 6d14e1390cb3128c66921600aee02a42eaa13702 (diff) | |
Update ethernetif.c
if device->eth_rx is NULL ,rx thread will hard fault...
Diffstat (limited to 'components/net')
| -rw-r--r-- | components/net/lwip-1.4.1/src/netif/ethernetif.c | 2 |
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) { |
