diff options
author | Ariff Abdullah <ariff@FreeBSD.org> | 2007-03-19 16:06:26 +0000 |
---|---|---|
committer | Ariff Abdullah <ariff@FreeBSD.org> | 2007-03-19 16:06:26 +0000 |
commit | 19f018fb83a571fd31e83cd15dfbb70f4ba1b1d9 (patch) | |
tree | b16b1cfbff6e199502dca2648b4a75ac194a68e5 /sys/dev/sound/pci/hda | |
parent | e6d4b388b9b5268be5e9cfe7c080c94084947315 (diff) |
Notes
Diffstat (limited to 'sys/dev/sound/pci/hda')
-rw-r--r-- | sys/dev/sound/pci/hda/hdac.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/sound/pci/hda/hdac.c b/sys/dev/sound/pci/hda/hdac.c index ad0c256e139c3..d1d95dda8dd40 100644 --- a/sys/dev/sound/pci/hda/hdac.c +++ b/sys/dev/sound/pci/hda/hdac.c @@ -5085,10 +5085,13 @@ hdac_release_resources(struct hdac_softc *sc) hdac_dma_free(&sc->play.bdl_dma); if (sc->rec.blkcnt > 0) hdac_dma_free(&sc->rec.bdl_dma); + if (sc->chan_dmat != NULL) { + bus_dma_tag_destroy(sc->chan_dmat); + sc->chan_dmat = NULL; + } hdac_irq_free(sc); hdac_mem_free(sc); free(sc, M_DEVBUF); - } /* This function surely going to make its way into upper level someday. */ |