aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_gem.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/drm_gem.c')
-rw-r--r--drivers/gpu/drm/drm_gem.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm/drm_gem.c
index fc6ded8f318b..1ab29a7345c5 100644
--- a/drivers/gpu/drm/drm_gem.c
+++ b/drivers/gpu/drm/drm_gem.c
@@ -626,7 +626,7 @@ void drm_gem_vm_open(struct vm_area_struct *vma)
626 drm_gem_object_reference(obj); 626 drm_gem_object_reference(obj);
627 627
628 mutex_lock(&obj->dev->struct_mutex); 628 mutex_lock(&obj->dev->struct_mutex);
629 drm_vm_open_locked(vma); 629 drm_vm_open_locked(obj->dev, vma);
630 mutex_unlock(&obj->dev->struct_mutex); 630 mutex_unlock(&obj->dev->struct_mutex);
631} 631}
632EXPORT_SYMBOL(drm_gem_vm_open); 632EXPORT_SYMBOL(drm_gem_vm_open);
@@ -637,7 +637,7 @@ void drm_gem_vm_close(struct vm_area_struct *vma)
637 struct drm_device *dev = obj->dev; 637 struct drm_device *dev = obj->dev;
638 638
639 mutex_lock(&dev->struct_mutex); 639 mutex_lock(&dev->struct_mutex);
640 drm_vm_close_locked(vma); 640 drm_vm_close_locked(obj->dev, vma);
641 drm_gem_object_unreference(obj); 641 drm_gem_object_unreference(obj);
642 mutex_unlock(&dev->struct_mutex); 642 mutex_unlock(&dev->struct_mutex);
643} 643}
@@ -710,7 +710,7 @@ int drm_gem_mmap(struct file *filp, struct vm_area_struct *vma)
710 */ 710 */
711 drm_gem_object_reference(obj); 711 drm_gem_object_reference(obj);
712 712
713 drm_vm_open_locked(vma); 713 drm_vm_open_locked(dev, vma);
714 714
715out_unlock: 715out_unlock:
716 mutex_unlock(&dev->struct_mutex); 716 mutex_unlock(&dev->struct_mutex);