aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/drm
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2014-06-13 18:20:44 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2014-06-13 18:20:44 +0000
commitaced5239b239beb4bd419a8dafbde08f809b8585 (patch)
tree0a0f66cb6a86ef083ff47fdb6de973aaea4d9049 /sys/dev/drm
parentb30283c0916ef1c0a5b1dd411cfc4c39bcc1384f (diff)
downloadsrc-aced5239b239beb4bd419a8dafbde08f809b8585.tar.gz
src-aced5239b239beb4bd419a8dafbde08f809b8585.zip
Add missing calls to bus_dmamap_unload() when freeing static DMA
allocations. Reviewed by: scottl
Notes
Notes: svn path=/head/; revision=267446
Diffstat (limited to 'sys/dev/drm')
-rw-r--r--sys/dev/drm/ati_pcigart.c1
-rw-r--r--sys/dev/drm/drm_pci.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/drm/ati_pcigart.c b/sys/dev/drm/ati_pcigart.c
index 063288ed64d6..2c50e8bd3aab 100644
--- a/sys/dev/drm/ati_pcigart.c
+++ b/sys/dev/drm/ati_pcigart.c
@@ -116,6 +116,7 @@ drm_ati_free_pcigart_table(struct drm_device *dev,
{
struct drm_dma_handle *dmah = gart_info->dmah;
+ bus_dmamap_unload(dmah->tag, dmah->map);
bus_dmamem_free(dmah->tag, dmah->vaddr, dmah->map);
bus_dma_tag_destroy(dmah->tag);
free(dmah, DRM_MEM_DMA);
diff --git a/sys/dev/drm/drm_pci.c b/sys/dev/drm/drm_pci.c
index afd66047f216..3d9a6f4a2b76 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);