]> git.ipfire.org Git - thirdparty/qemu.git/commit - block/iscsi.c
block/iscsi: fix potential segfault on early callback
authorPeter Lieven <pl@kamp.de>
Tue, 10 Jun 2014 07:52:16 +0000 (09:52 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 18 Jun 2014 06:47:10 +0000 (08:47 +0200)
commitfcd470d857a02ad76cd5a351a80bc0bb46588314
tree1f999539ef1ad9a7c2acd1dfa3a9bd5b102c6197
parentefc6de0d0eb21bbd8fbc90da1faf7dd8ed9f5321
block/iscsi: fix potential segfault on early callback

it might happen in the future that a function directly invokes its callback.
In this case we end up in a segfault because the iTask is gone when the BH
is scheduled.

Signed-off-by: Peter Lieven <pl@kamp.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
block/iscsi.c