]> sourceware.org Git - lvm2.git/commitdiff
dmeventd: unlock lvm2 lock on error path
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 21 Dec 2018 20:29:05 +0000 (21:29 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 21 Dec 2018 20:43:36 +0000 (21:43 +0100)
New code missed to unlock locked lvm2 on error path when
command is not configured.

WHATS_NEW
daemons/dmeventd/plugins/lvm2/dmeventd_lvm.c

index 1a9c521b0c6c24dd0e2fd713e3316e26d481d41b..1bebff67cdd545ec1e295b9ecfc7e54dd9b8c1ce 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
 Version 2.03.02 - 
 ===================================
+  Fix missing unlock on lvm2 dmeventd plugin error path initialization.
   Improve Makefile dependency tracking.
   Move VDO support towards V2 target (6.2) support.
   Fix missing proper initialization of pv_list struct when adding pv.
index 95ec360289d0e9e6648fbbe47ae3c9741a6a4100..04bc8993d388c2fea7fa039cf08c9b629f617f2b 100644 (file)
@@ -159,6 +159,7 @@ int dmeventd_lvm2_command(struct dm_pool *mem, char *buffer, size_t size,
                        dmeventd_lvm2_lock();
                        if (!dmeventd_lvm2_run(cmd) ||
                            !(env = getenv(cmd))) {
+                               dmeventd_lvm2_unlock();
                                log_error("Unable to find configured command.");
                                return 0;
                        }
This page took 0.050359 seconds and 5 git commands to generate.