block/iscsi: fix initialization of iTask in iscsi_co_get_block_status
commit79f9c75e1707082e56723787e6b3610a46843e20
authorPeter Lieven <pl@kamp.de>
Mon, 8 Jan 2018 15:27:27 +0000 (8 16:27 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Jan 2018 13:54:52 +0000 (16 14:54 +0100)
tree579280794c93d2042afdd9a9f627a1e11c4c55b2
parent801110ab22be1ef258338345fc0b645af074d5bf
block/iscsi: fix initialization of iTask in iscsi_co_get_block_status

in case of unaligned requests or on a target that does not support
block provisioning we leave iTask uninitialized and check iTask.task
for NULL later.

Fixes: e38bc23454ef763deb4405ebdee6a1081aa00bc8
Signed-off-by: Peter Lieven <pl@kamp.de>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <1515425247-21730-1-git-send-email-pl@kamp.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
block/iscsi.c