scsi-generic: check ioctl statuses when SG_IO succeeds
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 12 Oct 2011 12:49:48 +0000 (14:49 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 28 Oct 2011 17:25:51 +0000 (19:25 +0200)
commit4432e53d8eb7c97559d2d44ab15b185d563c34c0
tree7fac229fb66d91cc9b6a721185def8e02e910a2d
parenta3b0903b2a9bae279e24a238cdc5a02dd5353736
scsi-generic: check ioctl statuses when SG_IO succeeds

A succeeding ioctl does not imply that the SCSI command succeeded.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/scsi-generic.c