|
@@ -1056,7 +1056,7 @@ vhost_scsi_handle_vq(struct vhost_scsi *vs, struct vhost_virtqueue *vq)
|
|
if (data_direction != DMA_NONE) {
|
|
if (data_direction != DMA_NONE) {
|
|
ret = vhost_scsi_map_iov_to_sgl(cmd,
|
|
ret = vhost_scsi_map_iov_to_sgl(cmd,
|
|
&vq->iov[data_first], data_num,
|
|
&vq->iov[data_first], data_num,
|
|
- data_direction == DMA_TO_DEVICE);
|
|
|
|
|
|
+ data_direction == DMA_FROM_DEVICE);
|
|
if (unlikely(ret)) {
|
|
if (unlikely(ret)) {
|
|
vq_err(vq, "Failed to map iov to sgl\n");
|
|
vq_err(vq, "Failed to map iov to sgl\n");
|
|
goto err_free;
|
|
goto err_free;
|