diff options
Diffstat (limited to 'drivers/vhost')
-rw-r--r-- | drivers/vhost/tcm_vhost.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/vhost/tcm_vhost.c b/drivers/vhost/tcm_vhost.c index fb366540ed5..481af88a5ff 100644 --- a/drivers/vhost/tcm_vhost.c +++ b/drivers/vhost/tcm_vhost.c | |||
@@ -533,8 +533,8 @@ static int vhost_scsi_map_iov_to_sgl(struct tcm_vhost_cmd *tv_cmd, | |||
533 | sg = kmalloc(sizeof(tv_cmd->tvc_sgl[0]) * sgl_count, GFP_ATOMIC); | 533 | sg = kmalloc(sizeof(tv_cmd->tvc_sgl[0]) * sgl_count, GFP_ATOMIC); |
534 | if (!sg) | 534 | if (!sg) |
535 | return -ENOMEM; | 535 | return -ENOMEM; |
536 | pr_debug("%s sg %p sgl_count %u is_err %ld\n", __func__, | 536 | pr_debug("%s sg %p sgl_count %u is_err %d\n", __func__, |
537 | sg, sgl_count, IS_ERR(sg)); | 537 | sg, sgl_count, !sg); |
538 | sg_init_table(sg, sgl_count); | 538 | sg_init_table(sg, sgl_count); |
539 | 539 | ||
540 | tv_cmd->tvc_sgl = sg; | 540 | tv_cmd->tvc_sgl = sg; |