aboutsummaryrefslogtreecommitdiff
path: root/shared-core/mach64_dma.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2004-08-23 10:05:01 +0000
committerDave Airlie <airlied@linux.ie>2004-08-23 10:05:01 +0000
commit7fe4f607681e9a5593e91915953a9b6c45e5f08c (patch)
tree585d6428e03bad220c527d1f71f4038d3da19587 /shared-core/mach64_dma.c
parent5c9ed8309493acb099463d25b32fabb5b7c004af (diff)
set pointers to NULL after freeing, remove some extra debugging
Diffstat (limited to 'shared-core/mach64_dma.c')
-rw-r--r--shared-core/mach64_dma.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/shared-core/mach64_dma.c b/shared-core/mach64_dma.c
index 0acb784d..4f90916d 100644
--- a/shared-core/mach64_dma.c
+++ b/shared-core/mach64_dma.c
@@ -993,8 +993,10 @@ int mach64_do_cleanup_dma( drm_device_t *dev )
drm_core_ioremapfree( dev_priv->ring_map, dev );
}
- if ( dev->agp_buffer_map )
+ if ( dev->agp_buffer_map ) {
drm_core_ioremapfree( dev->agp_buffer_map, dev );
+ dev->agp_buffer_map = NULL;
+ }
mach64_destroy_freelist( dev );