mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 09:02:44 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=202000
@ -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