Add missing unlock() on exit path
authorHannes Reinecke <hare@suse.de>
Thu, 18 Dec 2008 15:20:09 +0000 (16:20 +0100)
committerChristophe Varoqui <christophe.varoqui@free.fr>
Tue, 21 Apr 2009 23:06:05 +0000 (01:06 +0200)
We forgot to unlock the paths on exit.

Signed-off-by: Hannes Reinecke <hare@suse.de>
libmultipath/configure.c

index 9f9c118..783ea40 100644 (file)
@@ -342,6 +342,7 @@ domap (struct multipath * mpp)
 
                if (dm_map_present(mpp->alias)) {
                        condlog(3, "%s: map already present", mpp->alias);
+                       lock_multipath(mpp, 0);
                        break;
                }