Skip to content

Commit

Permalink
XCOPY: Only set the write flag if we actually have DATA-OUT
Browse files Browse the repository at this point in the history
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
  • Loading branch information
sahlberg committed Jan 7, 2017
1 parent f915aab commit 178b3ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/scsi-lowlevel.c
Original file line number Diff line number Diff line change
Expand Up @@ -3421,7 +3421,9 @@ scsi_cdb_extended_copy(int param_len)
task->cdb[13] = param_len & 0xFF;
/* Inititalize other fields in CDB */
task->cdb_size = 16;
task->xfer_dir = SCSI_XFER_WRITE;
if (param_len) {
task->xfer_dir = SCSI_XFER_WRITE;
}
task->expxferlen = param_len;

return task;
Expand Down

0 comments on commit 178b3ec

Please sign in to comment.