commit | 0a53f010745635c39a83756a948df60a84e88fe5 | [log] [tgz] |
---|---|---|
author | Ronnie Sahlberg <ronniesahlberg@gmail.com> | Sun Jun 23 08:07:08 2013 -0700 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Wed Jul 17 17:00:26 2013 +0200 |
tree | 10442fb89a1afd83e7e287d7652285f56afbb43f | |
parent | 6453a3a69488196f26d12654c6b148446abdf3d6 [diff] |
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>