diff options
Diffstat (limited to 'bsd-core/drm_pci.c')
-rw-r--r-- | bsd-core/drm_pci.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 } |