aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_gem.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem.c')
-rw-r--r--drivers/gpu/drm/i915/i915_gem.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 53f81b3b3424..8673a000a373 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -1427,11 +1427,7 @@ i915_gem_release_mmap(struct drm_i915_gem_object *obj)
1427 if (!obj->fault_mappable) 1427 if (!obj->fault_mappable)
1428 return; 1428 return;
1429 1429
1430 if (obj->base.dev->dev_mapping) 1430 drm_vma_node_unmap(&obj->base.vma_node, obj->base.dev->dev_mapping);
1431 unmap_mapping_range(obj->base.dev->dev_mapping,
1432 (loff_t)drm_vma_node_offset_addr(&obj->base.vma_node),
1433 obj->base.size, 1);
1434
1435 obj->fault_mappable = false; 1431 obj->fault_mappable = false;
1436} 1432}
1437 1433