diff options
author | jhb <jhb@FreeBSD.org> | 2014-06-13 18:20:44 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2014-06-13 18:20:44 +0000 |
commit | 4b2862afcf79ea4b962966fb574c207179b02a32 (patch) | |
tree | 0a0f66cb6a86ef083ff47fdb6de973aaea4d9049 /sys/dev/drm2 | |
parent | 538796da605ba2e36b056ca95d2a35bfed1bf89a (diff) | |
download | FreeBSD-src-4b2862afcf79ea4b962966fb574c207179b02a32.zip FreeBSD-src-4b2862afcf79ea4b962966fb574c207179b02a32.tar.gz |
Add missing calls to bus_dmamap_unload() when freeing static DMA
allocations.
Reviewed by: scottl
Diffstat (limited to 'sys/dev/drm2')
-rw-r--r-- | sys/dev/drm2/drm_pci.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/drm2/drm_pci.c b/sys/dev/drm2/drm_pci.c index ac9d4e6..50af71d 100644 --- a/sys/dev/drm2/drm_pci.c +++ b/sys/dev/drm2/drm_pci.c @@ -116,6 +116,7 @@ drm_pci_free(struct drm_device *dev, drm_dma_handle_t *dmah) if (dmah == NULL) return; + bus_dmamap_unload(dmah->tag, dmah->map); bus_dmamem_free(dmah->tag, dmah->vaddr, dmah->map); bus_dma_tag_destroy(dmah->tag); |