]> git.proxmox.com Git - qemu.git/commit
Fix iSCSI crash on SG_IO with an iovector
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Sun, 23 Jun 2013 15:07:08 +0000 (08:07 -0700)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 12 Aug 2013 20:21:16 +0000 (15:21 -0500)
commit89ca606d49d15c1e582600588b5ec0145ca3b078
tree07731d3460256cf29e653c92d2551881114a0715
parent5e2053dd159bf979a266f0a615a5d821a58bd06b
Fix iSCSI crash on SG_IO with an iovector

Don't assume that SG_IO is always invoked with a simple buffer,
check the iovec_count and if it is >= 1 then we need to pass an array
of iovectors to libiscsi instead of just a plain buffer.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 0a53f010745635c39a83756a948df60a84e88fe5)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block/iscsi.c