diff options
author | Eric Anholt <anholt@freebsd.org> | 2005-05-28 20:36:22 +0000 |
---|---|---|
committer | Eric Anholt <anholt@freebsd.org> | 2005-05-28 20:36:22 +0000 |
commit | 9cad6fb4e043ba6140d4c61f09ca0cf0ba8d18c0 (patch) | |
tree | bc9f18f58132bbdb5605d7312d48b67b4320fcbc /linux-core/drmP.h | |
parent | d7756397d695e5573647258f8412e9ecfb2645d4 (diff) |
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 <vsu@altlinux.ru>
Diffstat (limited to 'linux-core/drmP.h')
-rw-r--r-- | linux-core/drmP.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/linux-core/drmP.h b/linux-core/drmP.h index d7a19a2a..720503b6 100644 --- a/linux-core/drmP.h +++ b/linux-core/drmP.h @@ -992,6 +992,7 @@ extern int drm_ati_pcigart_cleanup(drm_device_t * dev, extern drm_dma_handle_t *drm_pci_alloc(drm_device_t * dev, size_t size, size_t align, dma_addr_t maxaddr); +extern void __drm_pci_free(drm_device_t * dev, drm_dma_handle_t *dmah); extern void drm_pci_free(drm_device_t * dev, drm_dma_handle_t *dmah); /* sysfs support (drm_sysfs.c) */ |