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/msk/if_msk.c | |
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/msk/if_msk.c')
-rw-r--r-- | sys/dev/msk/if_msk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/msk/if_msk.c b/sys/dev/msk/if_msk.c index cc6d8e4..ffbe36e 100644 --- a/sys/dev/msk/if_msk.c +++ b/sys/dev/msk/if_msk.c @@ -2059,11 +2059,11 @@ msk_detach(device_t dev) msk_txrx_dma_free(sc_if); bus_generic_detach(dev); - if (ifp) - if_free(ifp); sc = sc_if->msk_softc; sc->msk_if[sc_if->msk_port] = NULL; MSK_IF_UNLOCK(sc_if); + if (ifp) + if_free(ifp); return (0); } |