projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64e1c80
)
vhost: copy_to_user -> __copy_to_user
author
Michael S. Tsirkin
<mst@redhat.com>
Tue, 21 Sep 2010 12:18:01 +0000
(14:18 +0200)
committer
Michael S. Tsirkin
<mst@redhat.com>
Thu, 4 Nov 2010 11:22:11 +0000
(13:22 +0200)
We do access_ok checks at setup time, so we don't need to
redo them on each access.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/vhost.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/vhost/vhost.c
b/drivers/vhost/vhost.c
index c17c881e235ac12c9d6c042dafbd1fc32bce3149..e6a093187a0e9036b52c1085ba9fc32de9703970 100644
(file)
--- a/
drivers/vhost/vhost.c
+++ b/
drivers/vhost/vhost.c
@@
-1258,7
+1258,7
@@
static int __vhost_add_used_n(struct vhost_virtqueue *vq,
start = vq->last_used_idx % vq->num;
used = vq->used->ring + start;
- if (copy_to_user(used, heads, count * sizeof *used)) {
+ if (
__
copy_to_user(used, heads, count * sizeof *used)) {
vq_err(vq, "Failed to write used");
return -EFAULT;
}