diff options
author | Fam Zheng <famz@redhat.com> | 2015-07-29 16:45:11 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-07-30 15:44:09 +0200 |
commit | a56537a12757a8cdee24ad8c83e5af7a9833ea70 (patch) | |
tree | e08d4d80e70d8624e36ffaa69aa0b91b32415ee6 /tests/pcnet-test.c | |
parent | 4bb7b0daf8ea34bcc582642d35a2e4902f7841db (diff) |
scsi-disk: Fix assertion failure on WRITE SAME
The last portion of an unaligned WRITE SAME command could fail the
assertion in bdrv_aligned_pwritev:
assert(!qiov || bytes == qiov->size);
Because we updated data->iov.iov_len right above this if block, but
data->qiov still has the old size.
Reinitialize the qiov to make them equal and keep block layer happy.
Cc: qemu-stable@nongnu.org
Signed-off-by: Fam Zheng <famz@redhat.com>
Message-Id: <1438159512-3871-2-git-send-email-famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests/pcnet-test.c')
0 files changed, 0 insertions, 0 deletions