From 00f08c48682f8f868632ef29a99f6c6b0e6fa476 Mon Sep 17 00:00:00 2001 From: Tomas Hruby Date: Thu, 7 Feb 2013 09:49:52 +0000 Subject: [PATCH] LWIP - avoid crash when an unknown driver come up --- servers/lwip/driver.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.44.0