mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
903d5593ab
commit
7ac856b829
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue