From 0bda56246ca41d2ad4dd46b03ae1a053c6fb67f8 Mon Sep 17 00:00:00 2001 From: Owain Ainsworth Date: Mon, 30 Jun 2008 22:36:23 +0000 Subject: Don't try to free a non-malloced address. Somehow this bit of code escaped deletion when i killed the ifdefs around it. Problem noticed by Jason Meltzer and ckuethe@, thanks! --- sys/dev/pci/drm/drm_scatter.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'sys') diff --git a/sys/dev/pci/drm/drm_scatter.c b/sys/dev/pci/drm/drm_scatter.c index 6a6c81095ac..e18aa7a8ecd 100644 --- a/sys/dev/pci/drm/drm_scatter.c +++ b/sys/dev/pci/drm/drm_scatter.c @@ -44,8 +44,6 @@ drm_sg_cleanup(drm_sg_mem_t *entry) if (entry) { if (entry->mem) drm_sg_dmamem_free(entry->mem); - if (entry->handle) - free((void *)entry->handle, M_DRM); if (entry->busaddr) free(entry->busaddr, M_DRM); free(entry, M_DRM); -- cgit v1.2.3