From: Tomas Hruby Date: Thu, 7 Feb 2013 09:49:52 +0000 (+0000) Subject: LWIP - avoid crash when an unknown driver come up X-Git-Tag: v3.3.0~1066 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=00f08c48682f8f868632ef29a99f6c6b0e6fa476;p=minix.git LWIP - avoid crash when an unknown driver come up --- diff --git a/servers/lwip/driver.c b/servers/lwip/driver.c index a1c5a5318..473689ac7 100644 --- a/servers/lwip/driver.c +++ b/servers/lwip/driver.c @@ -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;