Don't panic on attach if we can't allocate ifp
Approved by: ed (mentor) MFC after: 2 weeks
This commit is contained in:
parent
c6a96a8441
commit
7c9fdc4d36
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user