1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-22 15:47:37 +00:00

Stop the interface before detaching and freeing it, rather than after.

Reported by:	marius
This commit is contained in:
Brooks Davis 2005-06-12 15:33:45 +00:00
parent 76b85e0fe6
commit 25bd46d0e7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=147317

View File

@ -363,9 +363,9 @@ gem_detach(sc)
struct ifnet *ifp = sc->sc_ifp;
int i;
gem_stop(ifp, 1);
ether_ifdetach(ifp);
if_free(ifp);
gem_stop(ifp, 1);
device_delete_child(sc->sc_dev, sc->sc_miibus);
for (i = 0; i < GEM_NRXDESC; i++) {