|
@@ -1024,6 +1024,7 @@ static int gntdev_mmap(struct file *flip, struct vm_area_struct *vma)
|
|
|
mutex_unlock(&priv->lock);
|
|
|
|
|
|
if (use_ptemod) {
|
|
|
+ map->pages_vm_start = vma->vm_start;
|
|
|
err = apply_to_page_range(vma->vm_mm, vma->vm_start,
|
|
|
vma->vm_end - vma->vm_start,
|
|
|
find_grant_ptes, map);
|
|
@@ -1061,7 +1062,6 @@ static int gntdev_mmap(struct file *flip, struct vm_area_struct *vma)
|
|
|
set_grant_ptes_as_special, NULL);
|
|
|
}
|
|
|
#endif
|
|
|
- map->pages_vm_start = vma->vm_start;
|
|
|
}
|
|
|
|
|
|
return 0;
|