« Previous | Next » 

Revision efb9ee02

IDefb9ee024845982a210bfe48a73298846adfe9da

Added by Hannes Reinecke about 10 years ago

scsi-disk: add data direction checking

scsi_req_parse() already provides for a data direction setting,
so we should be using it to check for correct direction.
And we should return the sense code 'INVALID FIELD IN CDB'
in these cases.

Signed-off-by: Hannes Reinecke <>
Signed-off-by: Paolo Bonzini <>
Reviewed-by: Christoph Hellwig <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences