diff options
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 ); |