diff options
-rw-r--r-- | drivers/scsi/scsi_tgt_lib.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_tgt_lib.c b/drivers/scsi/scsi_tgt_lib.c index b14251483c3b..a0f308bd145b 100644 --- a/drivers/scsi/scsi_tgt_lib.c +++ b/drivers/scsi/scsi_tgt_lib.c | |||
@@ -381,6 +381,11 @@ static int scsi_map_user_pages(struct scsi_tgt_cmd *tcmd, struct scsi_cmnd *cmd, | |||
381 | scsi_release_buffers(cmd); | 381 | scsi_release_buffers(cmd); |
382 | goto unmap_rq; | 382 | goto unmap_rq; |
383 | } | 383 | } |
384 | /* | ||
385 | * we use REQ_TYPE_BLOCK_PC so scsi_init_io doesn't set the | ||
386 | * length for us. | ||
387 | */ | ||
388 | cmd->sdb.length = rq->data_len; | ||
384 | 389 | ||
385 | return 0; | 390 | return 0; |
386 | 391 | ||