diff options
Diffstat (limited to 'drivers/scsi/cpqfcTSinit.c')
-rw-r--r-- | drivers/scsi/cpqfcTSinit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/cpqfcTSinit.c b/drivers/scsi/cpqfcTSinit.c index 2eeb493f5a2b..5674ada6d5c2 100644 --- a/drivers/scsi/cpqfcTSinit.c +++ b/drivers/scsi/cpqfcTSinit.c | |||
@@ -642,12 +642,12 @@ int cpqfcTS_ioctl( struct scsi_device *ScsiDev, int Cmnd, void *arg) | |||
642 | return( -EFAULT); | 642 | return( -EFAULT); |
643 | } | 643 | } |
644 | } | 644 | } |
645 | ScsiPassThruReq->sr_data_direction = SCSI_DATA_WRITE; | 645 | ScsiPassThruReq->sr_data_direction = DMA_TO_DEVICE; |
646 | } else if (vendor_cmd->rw_flag == VENDOR_READ_OPCODE) { | 646 | } else if (vendor_cmd->rw_flag == VENDOR_READ_OPCODE) { |
647 | ScsiPassThruReq->sr_data_direction = SCSI_DATA_READ; | 647 | ScsiPassThruReq->sr_data_direction = DMA_FROM_DEVICE; |
648 | } else | 648 | } else |
649 | // maybe this means a bug in the user app | 649 | // maybe this means a bug in the user app |
650 | ScsiPassThruReq->sr_data_direction = SCSI_DATA_NONE; | 650 | ScsiPassThruReq->sr_data_direction = DMA_BIDIRECTIONAL; |
651 | 651 | ||
652 | ScsiPassThruReq->sr_cmd_len = 0; // set correctly by scsi_do_req() | 652 | ScsiPassThruReq->sr_cmd_len = 0; // set correctly by scsi_do_req() |
653 | ScsiPassThruReq->sr_sense_buffer[0] = 0; | 653 | ScsiPassThruReq->sr_sense_buffer[0] = 0; |