Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 217831
b: refs/heads/master
c: f31fdf5
h: refs/heads/master
i:
  217829: ff0af9e
  217827: 268b28e
  217823: c0f0bc1
v: v3
  • Loading branch information
Jeremy Fitzhardinge committed Oct 20, 2010
1 parent 16a594c commit 610c591
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 441c7416b55d3d48b4aaafc5bdd804092387d877
refs/heads/master: f31fdf510531333dea95f0a92e6eaa1c3a7541e2
3 changes: 3 additions & 0 deletions trunk/drivers/xen/xenfs/privcmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ static int mmap_return_errors(void *data, void *state)
return 0;
}

static struct vm_operations_struct privcmd_vm_ops;

static long privcmd_ioctl_mmap_batch(void __user *udata)
{
int ret;
Expand Down Expand Up @@ -341,6 +343,7 @@ static long privcmd_ioctl_mmap_batch(void __user *udata)
vma = find_vma(mm, m.addr);
ret = -EINVAL;
if (!vma ||
vma->vm_ops != &privcmd_vm_ops ||
(m.addr != vma->vm_start) ||
((m.addr + (nr_pages << PAGE_SHIFT)) != vma->vm_end) ||
!privcmd_enforce_singleshot_mapping(vma)) {
Expand Down

0 comments on commit 610c591

Please sign in to comment.