Don't panic on attach if we can't allocate ifp

Approved by:	ed (mentor)
MFC after:	2 weeks
This commit is contained in:
Gavin Atkinson 2010-01-10 14:48:42 +00:00
parent c6a96a8441
commit 7c9fdc4d36

View File

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