diff options
| author | Adrian Chadd <adrian@FreeBSD.org> | 2012-07-23 02:49:25 +0000 |
|---|---|---|
| committer | Adrian Chadd <adrian@FreeBSD.org> | 2012-07-23 02:49:25 +0000 |
| commit | 54c9979539f771d9f0e84aa48fb1c7751d3e2565 (patch) | |
| tree | aa5b7c5c6e4590853727ab6f3523378e549207c7 /sys/dev/ath/if_ath_pci.c | |
| parent | 3d9b15965ec0305d3b2d2895985304d6bbcdf839 (diff) | |
Notes
Diffstat (limited to 'sys/dev/ath/if_ath_pci.c')
| -rw-r--r-- | sys/dev/ath/if_ath_pci.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/ath/if_ath_pci.c b/sys/dev/ath/if_ath_pci.c index 6b4c9bde5e99..5973dc38bf3e 100644 --- a/sys/dev/ath/if_ath_pci.c +++ b/sys/dev/ath/if_ath_pci.c @@ -250,11 +250,13 @@ ath_pci_attach(device_t dev) ATH_LOCK_INIT(sc); ATH_PCU_LOCK_INIT(sc); ATH_RX_LOCK_INIT(sc); + ATH_TXSTATUS_LOCK_INIT(sc); error = ath_attach(pci_get_device(dev), sc); if (error == 0) /* success */ return 0; + ATH_TXSTATUS_LOCK_DESTROY(sc); ATH_PCU_LOCK_DESTROY(sc); ATH_RX_LOCK_DESTROY(sc); ATH_LOCK_DESTROY(sc); @@ -295,6 +297,7 @@ ath_pci_detach(device_t dev) if (sc->sc_eepromdata) free(sc->sc_eepromdata, M_TEMP); + ATH_TXSTATUS_LOCK_DESTROY(sc); ATH_PCU_LOCK_DESTROY(sc); ATH_RX_LOCK_DESTROY(sc); ATH_LOCK_DESTROY(sc); |
