From fa3fdbd99c6b6e5cec59f1044ce6ce1105b5e8dd Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Sun, 7 Nov 2004 00:25:49 +0000 Subject: Now that the memory debug code is gone, and all 3 BSDs have M_ZERO, stop using drm_alloc/drm_free in the core and instead use plain malloc/free. --- bsd-core/drm_pci.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bsd-core/drm_pci.c') diff --git a/bsd-core/drm_pci.c b/bsd-core/drm_pci.c index 07b8a643..4c8941d0 100644 --- a/bsd-core/drm_pci.c +++ b/bsd-core/drm_pci.c @@ -58,6 +58,8 @@ void drm_pci_free(drm_device_t *dev, size_t size, void *vaddr, dma_addr_t busaddr) { #if __FreeBSD_version > 500000 + if (vaddr == NULL) + return; contigfree(vaddr, size, M_DRM); /* Not available on 4.x */ #endif } -- cgit v1.2.3