diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-08-09 11:33:26 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2012-08-09 15:35:45 +0200 |
commit | 46e3f30e3c81e23c07f16b2193dfb6928646c205 (patch) | |
tree | d59f960951f068fe69185faf170fb4e9ebc870e2 /qemu-tls.h | |
parent | 4dd7c82cdbabe54386ef31939f865469a095c9c3 (diff) | |
download | qemu-46e3f30e3c81e23c07f16b2193dfb6928646c205.tar.gz qemu-46e3f30e3c81e23c07f16b2193dfb6928646c205.tar.bz2 qemu-46e3f30e3c81e23c07f16b2193dfb6928646c205.zip |
scsi-disk: more assertions and resets for aiocb
Leaving the aiocb to a non-NULL value leads to an assertion failure when
rerror/werror are set to stop or enospc, and the operation is retried.
scsi-disk checks that the aiocb member is NULL before filling it.
This patch correctly resets the aiocb to NULL values everywhere,
and adds the dual assertion that the aiocb was non-NULL before
calling bdrv_acct_done.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qemu-tls.h')
0 files changed, 0 insertions, 0 deletions