]> git.ipfire.org Git - thirdparty/libvirt.git/commit
ch: Unlock domain in virCHEventStopProcess() on all exit paths
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 10 Sep 2025 09:43:53 +0000 (11:43 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 11 Sep 2025 14:31:11 +0000 (16:31 +0200)
commit06802eeceb81d4a544b7777ef100d0dfcd00cf97
tree4e60c8ec30a9b07cc5c96e6bb7274d80495cce33
parentcd00c706955c80bea47b143d5619b11b1399c108
ch: Unlock domain in virCHEventStopProcess() on all exit paths

The aim of virCHEventStopProcess() is to clean up after stopped
domain by calling virCHProcessStop(). But in order to do that it
needs to acquire a job and in order to do that it needs to lock
the domain object. Well, the object is not unlocked in all exit
paths, i.e. when job acquiring fails the domain object is left
locked.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/ch/ch_events.c