From 9cad6fb4e043ba6140d4c61f09ca0cf0ba8d18c0 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Sat, 28 May 2005 20:36:22 +0000 Subject: Bugzilla #3217: Create a new __drm_pci_free which is used internally in linux-core to free pci memory without freeing the structure. Linux-core internals often create pci dma handle structures on the stack due to the lack of a drm_local_map_t to store them in properly. Fix the original drm_pci_free to actually free the dma handle structure instead of leaking it. Signed-off-by: Sergey Vlasov --- linux-core/drm_vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux-core/drm_vm.c') diff --git a/linux-core/drm_vm.c b/linux-core/drm_vm.c index bb982b80..67910e6d 100644 --- a/linux-core/drm_vm.c +++ b/linux-core/drm_vm.c @@ -242,7 +242,7 @@ void drm_vm_shm_close(struct vm_area_struct *vma) dmah.vaddr = map->handle; dmah.busaddr = map->offset; dmah.size = map->size; - drm_pci_free(dev, &dmah); + __drm_pci_free(dev, &dmah); break; } drm_free(map, sizeof(*map), DRM_MEM_MAPS); -- cgit v1.2.3