« Previous | Next » 

Revision efb9ee02


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


  • added
  • modified
  • copied
  • renamed
  • deleted

View differences