Merge r202000 from head:

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

Approved by:	ed (mentor, implicit)
This commit is contained in:
Gavin Atkinson 2010-01-24 22:01:04 +00:00
parent 903d5593ab
commit 7ac856b829

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;