mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-06-24 00:21:05 +08:00
Update ethernetif.c
if device->eth_rx is NULL ,rx thread will hard fault...
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user