LWIP - avoid crash when an unknown driver come up

This commit is contained in:
Tomas Hruby 2013-02-07 09:49:52 +00:00 committed by Lionel Sambuc
parent f6b5201f64
commit 00f08c4868

View file

@ -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;