mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Fix a couple of leaking situations when errors happen.
This commit is contained in:
parent
d55dc24982
commit
730b64121c
1 changed files with 2 additions and 0 deletions
|
|
@ -1887,6 +1887,7 @@ xe_activate(device_t dev)
|
|||
8, RF_ACTIVE);
|
||||
if (!sc->ce2_port_res) {
|
||||
DEVPRINTF(1, (dev, "Cannot allocate I/O port for modem\n"));
|
||||
xe_deactivate(dev);
|
||||
return ENOMEM;
|
||||
}
|
||||
|
||||
|
|
@ -1914,6 +1915,7 @@ xe_activate(device_t dev)
|
|||
|
||||
if (!sc->port_res) {
|
||||
DEVPRINTF(1, (dev, "Cannot allocate ioport\n"));
|
||||
xe_deactivate(dev);
|
||||
return ENOMEM;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue