summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorVadim Rozenfeld2016-05-13 13:03:22 +0200
committerPaolo Bonzini2016-05-23 16:53:46 +0200
commit644c6869d335e10bc10b8399646f767763c4977f (patch)
treeaf95bf424b8453bebde39ec3a607e4e9ecb480e4 /block
parentesp: check dma length before reading scsi command(CVE-2016-4441) (diff)
downloadqemu-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.c1
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