diff options
author | Robert Noland <rnoland@2hip.net> | 2008-08-20 17:15:46 -0400 |
---|---|---|
committer | Robert Noland <rnoland@2hip.net> | 2008-08-24 15:25:19 -0400 |
commit | 1f3c4dd938a1710d762bac37dfb1b17c90af4732 (patch) | |
tree | 486a89a18261cf909d8e849846444c83a3c86b89 | |
parent | 3e9541230d7b7c32ecb36c1edc5124b6991222be (diff) |
i915: Free dev->dev_private on unload.
-rw-r--r-- | shared-core/i915_dma.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shared-core/i915_dma.c b/shared-core/i915_dma.c index 34d9355d..84aafaae 100644 --- a/shared-core/i915_dma.c +++ b/shared-core/i915_dma.c @@ -1114,6 +1114,8 @@ int i915_driver_unload(struct drm_device *dev) drm_free(dev->dev_private, sizeof(drm_i915_private_t), DRM_MEM_DRIVER); + dev->dev_private = NULL; + #ifdef __linux__ #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,25) intel_fini_chipset_flush_compat(dev); |