From 7c9fdc4d36b1ee98bb3ab28c0ba68b2bd6ea7864 Mon Sep 17 00:00:00 2001 From: Gavin Atkinson Date: Sun, 10 Jan 2010 14:48:42 +0000 Subject: [PATCH] Don't panic on attach if we can't allocate ifp Approved by: ed (mentor) MFC after: 2 weeks --- sys/dev/ae/if_ae.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/ae/if_ae.c b/sys/dev/ae/if_ae.c index d3e95ef1eb85..68181f4b6d4d 100644 --- a/sys/dev/ae/if_ae.c +++ b/sys/dev/ae/if_ae.c @@ -367,6 +367,7 @@ ae_attach(device_t dev) if (ifp == NULL) { device_printf(dev, "could not allocate ifnet structure.\n"); error = ENXIO; + goto fail; } ifp->if_softc = sc;