Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230851
b: refs/heads/master
c: f0a70c8
h: refs/heads/master
i:
  230849: 340f88b
  230847: cfd36f9
v: v3
  • Loading branch information
Daniel De Graaf authored and Konrad Rzeszutek Wilk committed Jan 11, 2011
1 parent 96e8516 commit 37907eb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ba5d1012292403c8037adf4a54c4ec50dfe846c4
refs/heads/master: f0a70c882ea546bbd802643990ceded32c39facc
9 changes: 7 additions & 2 deletions trunk/drivers/xen/gntdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -575,21 +575,26 @@ static int gntdev_mmap(struct file *flip, struct vm_area_struct *vma)
if (!(vma->vm_flags & VM_WRITE))
map->flags |= GNTMAP_readonly;

spin_unlock(&priv->lock);

err = apply_to_page_range(vma->vm_mm, vma->vm_start,
vma->vm_end - vma->vm_start,
find_grant_ptes, map);
if (err) {
printk(KERN_WARNING "find_grant_ptes() failure.\n");
goto unlock_out;
return err;
}

err = map_grant_pages(map);
if (err) {
printk(KERN_WARNING "map_grant_pages() failure.\n");
goto unlock_out;
return err;
}

map->is_mapped = 1;

return 0;

unlock_out:
spin_unlock(&priv->lock);
return err;
Expand Down

0 comments on commit 37907eb

Please sign in to comment.