summaryrefslogtreecommitdiffstats
path: root/sys/dev/en/if_en_pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/en/if_en_pci.c')
-rw-r--r--sys/dev/en/if_en_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/en/if_en_pci.c b/sys/dev/en/if_en_pci.c
index bfff233..c17e24d 100644
--- a/sys/dev/en/if_en_pci.c
+++ b/sys/dev/en/if_en_pci.c
@@ -321,7 +321,6 @@ en_pci_detach(device_t dev)
*/
en_reset(sc);
atm_ifdetach(sc->ifp);
- if_free(sc->ifp);
/*
* Deallocate resources.
@@ -334,6 +333,7 @@ en_pci_detach(device_t dev)
* Free all the driver internal resources
*/
en_destroy(sc);
+ if_free(sc->ifp);
return (0);
}
OpenPOWER on IntegriCloud