Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329149
b: refs/heads/master
c: 9d2be92
h: refs/heads/master
i:
  329147: 99cdaf3
v: v3
  • Loading branch information
Dan Carpenter authored and Konrad Rzeszutek Wilk committed Sep 10, 2012
1 parent 6208ede commit c0ae8ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 1714df7f2cee6a741c3ed24231ec5db25b90633a
refs/heads/master: 9d2be9287107695708e6aae5105a8a518a6cb4d0
5 changes: 4 additions & 1 deletion trunk/drivers/xen/privcmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,11 @@ static long privcmd_ioctl_mmap_batch(void __user *udata, int version)
state.err = err_array;
ret = traverse_pages(m.num, sizeof(xen_pfn_t),
&pagelist, mmap_return_errors_v1, &state);
} else if (version == 2)
} else if (version == 2) {
ret = __copy_to_user(m.err, err_array, m.num * sizeof(int));
if (ret)
ret = -EFAULT;
}

/* If we have not had any EFAULT-like global errors then set the global
* error to -ENOENT if necessary. */
Expand Down

0 comments on commit c0ae8ea

Please sign in to comment.