diff options
Diffstat (limited to 'drivers/scsi/libsrp.c')
-rw-r--r-- | drivers/scsi/libsrp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/scsi/libsrp.c b/drivers/scsi/libsrp.c index 732446e63963..2ad0a27dbaab 100644 --- a/drivers/scsi/libsrp.c +++ b/drivers/scsi/libsrp.c | |||
@@ -392,7 +392,7 @@ static int vscsis_data_length(struct srp_cmd *cmd, enum dma_data_direction dir) | |||
392 | } | 392 | } |
393 | 393 | ||
394 | int srp_cmd_queue(struct Scsi_Host *shost, struct srp_cmd *cmd, void *info, | 394 | int srp_cmd_queue(struct Scsi_Host *shost, struct srp_cmd *cmd, void *info, |
395 | u64 addr) | 395 | u64 itn_id, u64 addr) |
396 | { | 396 | { |
397 | enum dma_data_direction dir; | 397 | enum dma_data_direction dir; |
398 | struct scsi_cmnd *sc; | 398 | struct scsi_cmnd *sc; |
@@ -428,7 +428,8 @@ int srp_cmd_queue(struct Scsi_Host *shost, struct srp_cmd *cmd, void *info, | |||
428 | sc->request_bufflen = len; | 428 | sc->request_bufflen = len; |
429 | sc->request_buffer = (void *) (unsigned long) addr; | 429 | sc->request_buffer = (void *) (unsigned long) addr; |
430 | sc->tag = tag; | 430 | sc->tag = tag; |
431 | err = scsi_tgt_queue_command(sc, (struct scsi_lun *) &cmd->lun, cmd->tag); | 431 | err = scsi_tgt_queue_command(sc, itn_id, (struct scsi_lun *)&cmd->lun, |
432 | cmd->tag); | ||
432 | if (err) | 433 | if (err) |
433 | scsi_host_put_command(shost, sc); | 434 | scsi_host_put_command(shost, sc); |
434 | 435 | ||