aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/vhost/scsi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/vhost/scsi.c')
-rw-r--r--drivers/vhost/scsi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/vhost/scsi.c b/drivers/vhost/scsi.c
index a08472ae5b1b..8e10ab436d1f 100644
--- a/drivers/vhost/scsi.c
+++ b/drivers/vhost/scsi.c
@@ -884,7 +884,7 @@ vhost_scsi_get_req(struct vhost_virtqueue *vq, struct vhost_scsi_ctx *vc,
884 884
885 if (unlikely(!copy_from_iter_full(vc->req, vc->req_size, 885 if (unlikely(!copy_from_iter_full(vc->req, vc->req_size,
886 &vc->out_iter))) { 886 &vc->out_iter))) {
887 vq_err(vq, "Faulted on copy_from_iter\n"); 887 vq_err(vq, "Faulted on copy_from_iter_full\n");
888 } else if (unlikely(*vc->lunp != 1)) { 888 } else if (unlikely(*vc->lunp != 1)) {
889 /* virtio-scsi spec requires byte 0 of the lun to be 1 */ 889 /* virtio-scsi spec requires byte 0 of the lun to be 1 */
890 vq_err(vq, "Illegal virtio-scsi lun: %u\n", *vc->lunp); 890 vq_err(vq, "Illegal virtio-scsi lun: %u\n", *vc->lunp);
@@ -1436,7 +1436,7 @@ vhost_scsi_set_endpoint(struct vhost_scsi *vs,
1436 se_tpg = &tpg->se_tpg; 1436 se_tpg = &tpg->se_tpg;
1437 ret = target_depend_item(&se_tpg->tpg_group.cg_item); 1437 ret = target_depend_item(&se_tpg->tpg_group.cg_item);
1438 if (ret) { 1438 if (ret) {
1439 pr_warn("configfs_depend_item() failed: %d\n", ret); 1439 pr_warn("target_depend_item() failed: %d\n", ret);
1440 kfree(vs_tpg); 1440 kfree(vs_tpg);
1441 mutex_unlock(&tpg->tv_tpg_mutex); 1441 mutex_unlock(&tpg->tv_tpg_mutex);
1442 goto out; 1442 goto out;