aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/vhost
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/vhost')
-rw-r--r--drivers/vhost/scsi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/vhost/scsi.c b/drivers/vhost/scsi.c
index 667e72d46998..03e484fa1ef4 100644
--- a/drivers/vhost/scsi.c
+++ b/drivers/vhost/scsi.c
@@ -1144,7 +1144,8 @@ vhost_scsi_handle_vq(struct vhost_scsi *vs, struct vhost_virtqueue *vq)
1144 } 1144 }
1145 1145
1146 cmd = vhost_scsi_get_tag(vq, tpg, cdb, tag, lun, task_attr, 1146 cmd = vhost_scsi_get_tag(vq, tpg, cdb, tag, lun, task_attr,
1147 exp_data_len, data_direction); 1147 exp_data_len + prot_bytes,
1148 data_direction);
1148 if (IS_ERR(cmd)) { 1149 if (IS_ERR(cmd)) {
1149 vq_err(vq, "vhost_scsi_get_tag failed %ld\n", 1150 vq_err(vq, "vhost_scsi_get_tag failed %ld\n",
1150 PTR_ERR(cmd)); 1151 PTR_ERR(cmd));