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