XCOPY: Only set the write flag if we actually have DATA-OUT

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
Ronnie Sahlberg
2017-01-07 08:57:45 -08:00
parent f915aabf57
commit 178b3ec5b9

View File

@@ -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;