summaryrefslogtreecommitdiffstats
path: root/sys/dev/ex/if_ex.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ex/if_ex.c')
-rw-r--r--sys/dev/ex/if_ex.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ex/if_ex.c b/sys/dev/ex/if_ex.c
index e3d4859..3c1296f 100644
--- a/sys/dev/ex/if_ex.c
+++ b/sys/dev/ex/if_ex.c
@@ -196,6 +196,9 @@ ex_release_resources(device_t dev)
sc->irq = NULL;
}
+ if (sc->ifp)
+ if_free(sc->ifp);
+
return;
}
@@ -276,7 +279,6 @@ ex_detach(device_t dev)
ifp->if_drv_flags &= ~IFF_DRV_RUNNING;
ether_ifdetach(ifp);
- if_free(ifp);
ex_release_resources(dev);
OpenPOWER on IntegriCloud