aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/i915/i915_gem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 30ea4b6b0219..e0da98602eed 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -3834,7 +3834,8 @@ void i915_gem_free_object(struct drm_gem_object *obj)
3834 3834
3835 i915_gem_object_unbind(obj); 3835 i915_gem_object_unbind(obj);
3836 3836
3837 i915_gem_free_mmap_offset(obj); 3837 if (obj_priv->mmap_offset)
3838 i915_gem_free_mmap_offset(obj);
3838 3839
3839 kfree(obj_priv->page_cpu_valid); 3840 kfree(obj_priv->page_cpu_valid);
3840 kfree(obj_priv->bit_17); 3841 kfree(obj_priv->bit_17);