diff options
| author | Hannes Reinecke <hare@suse.de> | 2011-04-18 12:57:22 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2011-05-26 12:14:16 +0200 |
| commit | efb9ee024845982a210bfe48a73298846adfe9da (patch) | |
| tree | 04a8eabbfdb98d4a5affb127c5cf241bb7986875 /hw/scsi.h | |
| parent | 74382217ca8f25a530c9f63e6b523e6259d7719a (diff) | |
| download | focaccia-qemu-efb9ee024845982a210bfe48a73298846adfe9da.tar.gz focaccia-qemu-efb9ee024845982a210bfe48a73298846adfe9da.zip | |
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 <hare@suse.de> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'hw/scsi.h')
0 files changed, 0 insertions, 0 deletions