aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/vhost
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/vhost')
-rw-r--r--drivers/vhost/tcm_vhost.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vhost/tcm_vhost.c b/drivers/vhost/tcm_vhost.c
index 2968b4934659..dd9614eb2577 100644
--- a/drivers/vhost/tcm_vhost.c
+++ b/drivers/vhost/tcm_vhost.c
@@ -661,7 +661,7 @@ static void vhost_scsi_handle_vq(struct vhost_scsi *vs,
661 661
662 /* Extract the tpgt */ 662 /* Extract the tpgt */
663 target = v_req.lun[1]; 663 target = v_req.lun[1];
664 tv_tpg = vs->vs_tpg[target]; 664 tv_tpg = ACCESS_ONCE(vs->vs_tpg[target]);
665 665
666 /* Target does not exist, fail the request */ 666 /* Target does not exist, fail the request */
667 if (unlikely(!tv_tpg)) { 667 if (unlikely(!tv_tpg)) {