diff options
author | Dave Airlie <airlied@linux.ie> | 2004-08-23 10:05:01 +0000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2004-08-23 10:05:01 +0000 |
commit | 7fe4f607681e9a5593e91915953a9b6c45e5f08c (patch) | |
tree | 585d6428e03bad220c527d1f71f4038d3da19587 /shared/mach64_dma.c | |
parent | 5c9ed8309493acb099463d25b32fabb5b7c004af (diff) |
set pointers to NULL after freeing, remove some extra debugging
Diffstat (limited to 'shared/mach64_dma.c')
-rw-r--r-- | shared/mach64_dma.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/shared/mach64_dma.c b/shared/mach64_dma.c index 0acb784d..4f90916d 100644 --- a/shared/mach64_dma.c +++ b/shared/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 ); |