Commit 4b68c65b authored by James Bottomley's avatar James Bottomley

Fix up data direction in SCSI abstracted mode sense

parent 17ce0350
......@@ -1388,7 +1388,7 @@ __scsi_mode_sense(struct scsi_request *sreq, int dbd, int modepage,
sreq->sr_cmd_len = 0;
sreq->sr_sense_buffer[0] = 0;
sreq->sr_sense_buffer[2] = 0;
sreq->sr_data_direction = SCSI_DATA_READ;
sreq->sr_data_direction = DMA_FROM_DEVICE;
memset(buffer, 0, len);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment