diff options
Diffstat (limited to 'drivers/scsi/ide-scsi.c')
-rw-r--r-- | drivers/scsi/ide-scsi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/ide-scsi.c b/drivers/scsi/ide-scsi.c index 37cfec43bd40..1ec439320018 100644 --- a/drivers/scsi/ide-scsi.c +++ b/drivers/scsi/ide-scsi.c | |||
@@ -237,6 +237,7 @@ static int idescsi_check_condition(ide_drive_t *drive, | |||
237 | ide_scsi_hex_dump(pc->c, 6); | 237 | ide_scsi_hex_dump(pc->c, 6); |
238 | } | 238 | } |
239 | rq->rq_disk = scsi->disk; | 239 | rq->rq_disk = scsi->disk; |
240 | memcpy(rq->cmd, pc->c, 12); | ||
240 | ide_do_drive_cmd(drive, rq); | 241 | ide_do_drive_cmd(drive, rq); |
241 | return 0; | 242 | return 0; |
242 | } | 243 | } |
@@ -632,6 +633,7 @@ static int idescsi_queue (struct scsi_cmnd *cmd, | |||
632 | rq->special = (char *) pc; | 633 | rq->special = (char *) pc; |
633 | rq->cmd_type = REQ_TYPE_SPECIAL; | 634 | rq->cmd_type = REQ_TYPE_SPECIAL; |
634 | spin_unlock_irq(host->host_lock); | 635 | spin_unlock_irq(host->host_lock); |
636 | memcpy(rq->cmd, pc->c, 12); | ||
635 | blk_execute_rq_nowait(drive->queue, scsi->disk, rq, 0, NULL); | 637 | blk_execute_rq_nowait(drive->queue, scsi->disk, rq, 0, NULL); |
636 | spin_lock_irq(host->host_lock); | 638 | spin_lock_irq(host->host_lock); |
637 | return 0; | 639 | return 0; |