diff options
author | Paolo Bonzini | 2017-05-15 12:00:56 +0200 |
---|---|---|
committer | Jeff Cody | 2017-05-16 16:34:45 +0200 |
commit | 3ce6a729b5d78b13283ddc6c529811f67519a62d (patch) | |
tree | 2471b85f5d8e5e5ce67ca049d24ccd0f8564a39e /ui | |
parent | curl: avoid recursive locking of BDRVCURLState mutex (diff) | |
download | qemu-3ce6a729b5d78b13283ddc6c529811f67519a62d.tar.gz qemu-3ce6a729b5d78b13283ddc6c529811f67519a62d.tar.xz qemu-3ce6a729b5d78b13283ddc6c529811f67519a62d.zip |
curl: split curl_find_state/curl_init_state
If curl_easy_init fails, a CURLState is left with s->in_use = 1. Split
curl_init_state in two, so that we can distinguish the two failures and
call curl_clean_state if needed.
While at it, simplify curl_find_state, removing a dummy loop. The
aio_poll loop is moved to the sole caller that needs it.
Reviewed-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: 20170515100059.15795-5-pbonzini@redhat.com
Signed-off-by: Jeff Cody <jcody@redhat.com>
Diffstat (limited to 'ui')
0 files changed, 0 insertions, 0 deletions