]> git.proxmox.com Git - qemu.git/commit
iscsi: simplify freeing of tasks
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 31 May 2013 11:47:08 +0000 (13:47 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 18 Jun 2013 10:43:03 +0000 (12:43 +0200)
commitf0d2a4d4d63dd2f0f3ecb2d591b979b0e7f24a22
tree2a786e903657884db31ada4fa1b1d147fd2a94b3
parent0e22a2d18998fd183c8181663981eb681ca977e9
iscsi: simplify freeing of tasks

Always free them in the iscsi_aio_*_acb functions and remove the
checks in their callers.  Remove ifs when the task struct was
previously dereferenced (spotted by Coverity).

Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
block/iscsi.c