summaryrefslogtreecommitdiffstats
path: root/sys/dev/drm/drm_pci.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2014-06-13 18:20:44 +0000
committerjhb <jhb@FreeBSD.org>2014-06-13 18:20:44 +0000
commit4b2862afcf79ea4b962966fb574c207179b02a32 (patch)
tree0a0f66cb6a86ef083ff47fdb6de973aaea4d9049 /sys/dev/drm/drm_pci.c
parent538796da605ba2e36b056ca95d2a35bfed1bf89a (diff)
downloadFreeBSD-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/drm/drm_pci.c')
-rw-r--r--sys/dev/drm/drm_pci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/drm/drm_pci.c b/sys/dev/drm/drm_pci.c
index afd6604..3d9a6f4 100644
--- a/sys/dev/drm/drm_pci.c
+++ b/sys/dev/drm/drm_pci.c
@@ -119,6 +119,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);
OpenPOWER on IntegriCloud