]> git.ipfire.org Git - thirdparty/libvirt.git/commit
remote: fix lock ordering mistake in event registration
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 29 Jul 2019 14:09:14 +0000 (15:09 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 9 Aug 2019 13:06:31 +0000 (14:06 +0100)
commit7ea3f0d7ba366b952006ba77deb950baeb334877
tree7f129247f5b5ff6b004512496c624b56578bff1c
parent9cc8ecc809cefaf79583ca05da7472fe7e1bfd7c
remote: fix lock ordering mistake in event registration

If the event (un)registration methods are invoked while no connection is
open, they jump to a cleanup block which unlocks a mutex which is not
currently locked.

Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/remote/remote_daemon_dispatch.c