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:
parent
76b85e0fe6
commit
25bd46d0e7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=147317
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user