diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-06-30 22:36:23 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-06-30 22:36:23 +0000 |
commit | 0bda56246ca41d2ad4dd46b03ae1a053c6fb67f8 (patch) | |
tree | f0993ba68fc4fe5fe05579f7beef397441a30dc5 /sys/dev/pci/drm/drm_scatter.c | |
parent | 6b1255881a2f1a4e9dd6077cb84ea76d0c0b92e4 (diff) |
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!
Diffstat (limited to 'sys/dev/pci/drm/drm_scatter.c')
-rw-r--r-- | sys/dev/pci/drm/drm_scatter.c | 2 |
1 files changed, 0 insertions, 2 deletions
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); |