diff options
Diffstat (limited to 'drivers/vhost')
-rw-r--r-- | drivers/vhost/scsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vhost/scsi.c b/drivers/vhost/scsi.c index d695b1673ae5..dc78d87e0fc2 100644 --- a/drivers/vhost/scsi.c +++ b/drivers/vhost/scsi.c | |||
@@ -1079,7 +1079,7 @@ vhost_scsi_handle_vq(struct vhost_scsi *vs, struct vhost_virtqueue *vq) | |||
1079 | req_size, vq->iov[0].iov_len); | 1079 | req_size, vq->iov[0].iov_len); |
1080 | break; | 1080 | break; |
1081 | } | 1081 | } |
1082 | ret = memcpy_fromiovecend(req, &vq->iov[0], 0, req_size); | 1082 | ret = copy_from_user(req, vq->iov[0].iov_base, req_size); |
1083 | if (unlikely(ret)) { | 1083 | if (unlikely(ret)) { |
1084 | vq_err(vq, "Faulted on virtio_scsi_cmd_req\n"); | 1084 | vq_err(vq, "Faulted on virtio_scsi_cmd_req\n"); |
1085 | break; | 1085 | break; |