LWIP - avoid crash when an unknown driver come up
This commit is contained in:
parent
f6b5201f64
commit
00f08c4868
1 changed files with 3 additions and 1 deletions
|
@ -403,9 +403,11 @@ void driver_up(const char * label, endpoint_t ep)
|
|||
debug_print("LWIP : driver '%s' / %d is up for /dev/%s\n",
|
||||
label, ep, nic->name);
|
||||
nic->drv_ep = ep;
|
||||
} else
|
||||
} else {
|
||||
printf("LWIP : WARNING unexpected driver '%s' up event\n",
|
||||
label);
|
||||
return;
|
||||
}
|
||||
|
||||
nic->state = DRV_IDLE;
|
||||
|
||||
|
|
Loading…
Reference in a new issue