diff options
author | yongari <yongari@FreeBSD.org> | 2016-02-22 00:58:04 +0000 |
---|---|---|
committer | yongari <yongari@FreeBSD.org> | 2016-02-22 00:58:04 +0000 |
commit | a00f90f71b2c0aa3d466906aba461aff1aa23ed4 (patch) | |
tree | 5a5f182b063b7a044e2663ce5ee7dcbedb0c6d34 /sys/dev/sk | |
parent | 6453e45ba937bd756572ef0946949dc891ec597f (diff) | |
download | FreeBSD-src-a00f90f71b2c0aa3d466906aba461aff1aa23ed4.zip FreeBSD-src-a00f90f71b2c0aa3d466906aba461aff1aa23ed4.tar.gz |
ifnet lock was changed to use sx(9) long time ago.
Don't hold a driver lock for if_free(9).
Diffstat (limited to 'sys/dev/sk')
-rw-r--r-- | sys/dev/sk/if_sk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sk/if_sk.c b/sys/dev/sk/if_sk.c index 2678390..bdf4365 100644 --- a/sys/dev/sk/if_sk.c +++ b/sys/dev/sk/if_sk.c @@ -1833,8 +1833,6 @@ sk_detach(dev) ether_ifdetach(ifp); SK_IF_LOCK(sc_if); } - if (ifp) - if_free(ifp); /* * We're generally called from skc_detach() which is using * device_delete_child() to get to here. It's already trashed @@ -1848,6 +1846,8 @@ sk_detach(dev) sk_dma_jumbo_free(sc_if); sk_dma_free(sc_if); SK_IF_UNLOCK(sc_if); + if (ifp) + if_free(ifp); return(0); } |