Add tests from SANITIZE OVERWRITE parameter length

This commit is contained in:
Ronnie Sahlberg
2013-05-26 15:21:43 -07:00
parent e5e8d7e3ef
commit 4e08d27031
5 changed files with 126 additions and 1 deletions

View File

@@ -364,7 +364,7 @@ scsi_cdb_sanitize(int immed, int ause, int sa, int param_len)
} else {
task->xfer_dir = SCSI_XFER_NONE;
}
task->expxferlen = param_len;
task->expxferlen = (param_len + 3) & 0xfffc;
return task;
}