diff options
author | Vadim Rozenfeld | 2016-05-13 13:03:22 +0200 |
---|---|---|
committer | Paolo Bonzini | 2016-05-23 16:53:46 +0200 |
commit | 644c6869d335e10bc10b8399646f767763c4977f (patch) | |
tree | af95bf424b8453bebde39ec3a607e4e9ecb480e4 /block | |
parent | esp: check dma length before reading scsi command(CVE-2016-4441) (diff) | |
download | qemu-644c6869d335e10bc10b8399646f767763c4977f.tar.gz qemu-644c6869d335e10bc10b8399646f767763c4977f.tar.xz qemu-644c6869d335e10bc10b8399646f767763c4977f.zip |
iscsi: pass SCSI status back for SG_IO
Signed-off-by: Vadim Rozenfeld <vrozenfe@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/iscsi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/block/iscsi.c b/block/iscsi.c index 10f3906bcc..2ca8e72967 100644 --- a/block/iscsi.c +++ b/block/iscsi.c @@ -761,6 +761,7 @@ iscsi_aio_ioctl_cb(struct iscsi_context *iscsi, int status, acb->ioh->driver_status = 0; acb->ioh->host_status = 0; acb->ioh->resid = 0; + acb->ioh->status = status; #define SG_ERR_DRIVER_SENSE 0x08 |