]> git.proxmox.com Git - mirror_qemu.git/commit - block/iscsi.c
iscsi: do not leak acb->buf when commands are aborted
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Jan 2013 16:34:29 +0000 (17:34 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 24 Jan 2013 14:37:55 +0000 (15:37 +0100)
commit4790b03d308f6c7dea7dc6941ddab9867c9530b8
tree28bb95e19bbd65ad77005738575184ef63d545b2
parent3f668b6c5dc9747d0367837532c3b2ce0520cc17
iscsi: do not leak acb->buf when commands are aborted

acb->buf is freed in the WRITE(16) callback, but this may not
get called at all when commands are aborted.  Add another
free in the ABORT TASK callback, which requires setting acb->buf
to NULL everywhere.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
block/iscsi.c