SCSI: Pass the expected opcode to scsi_cdb_unmarshall()
Pass the opcode we expect to the unmarshalling function so it can do a basic check that we are trying to unmarshalling the right kind of cdb.
This commit is contained in:
@@ -96,7 +96,7 @@ void read10_cb(struct iscsi_context *iscsi _U_, int status, void *command_data,
|
||||
wt->rt = task;
|
||||
wt->client = client;
|
||||
|
||||
read10_cdb = scsi_cdb_unmarshall(task);
|
||||
read10_cdb = scsi_cdb_unmarshall(task, SCSI_OPCODE_READ10);
|
||||
if (read10_cdb == NULL) {
|
||||
printf("Failed to unmarshall READ10 CDB.\n");
|
||||
exit(10);
|
||||
|
||||
Reference in New Issue
Block a user