diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/vhost/vhost.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index c17c881e235a..e6a093187a0e 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c | |||
@@ -1258,7 +1258,7 @@ static int __vhost_add_used_n(struct vhost_virtqueue *vq, | |||
1258 | 1258 | ||
1259 | start = vq->last_used_idx % vq->num; | 1259 | start = vq->last_used_idx % vq->num; |
1260 | used = vq->used->ring + start; | 1260 | used = vq->used->ring + start; |
1261 | if (copy_to_user(used, heads, count * sizeof *used)) { | 1261 | if (__copy_to_user(used, heads, count * sizeof *used)) { |
1262 | vq_err(vq, "Failed to write used"); | 1262 | vq_err(vq, "Failed to write used"); |
1263 | return -EFAULT; | 1263 | return -EFAULT; |
1264 | } | 1264 | } |