]> 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)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 18 Jun 2013 18:00:25 +0000 (13:00 -0500)
commit1b94fc4b9aeee5c9ce658a0486315ec20ea371d0
tree6083cf0cad98f36d4a7bd660a16b1efea325337a
parent5e690bb9748e50e0deb406e982a17c0c7b6e65cf
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>
(cherry picked from commit f0d2a4d4d63dd2f0f3ecb2d591b979b0e7f24a22)

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