Blame SOURCES/autofs-5.1.7-fix-double-unlock-in-parse_mount.patch

96dc52
autofs-5.1.7 - fix double unlock in parse_mount()
96dc52
96dc52
From: Ian Kent <raven@themaw.net>
96dc52
96dc52
Coverity: double_unlock: "cache_unlock" unlocks "mc->rwlock" while it
96dc52
	  is unlocked.
96dc52
96dc52
Signed-off-by: Ian Kent <raven@themaw.net>
96dc52
---
96dc52
 CHANGELOG           |    1 +
96dc52
 modules/parse_sun.c |    1 -
96dc52
 2 files changed, 1 insertion(+), 1 deletion(-)
96dc52
96dc52
diff --git a/CHANGELOG b/CHANGELOG
96dc52
index 2e3b9fd7..224f58d6 100644
96dc52
--- a/CHANGELOG
96dc52
+++ b/CHANGELOG
96dc52
@@ -54,6 +54,7 @@
96dc52
 - remove redundant if check.
96dc52
 - fix possible memory leak in master_parse().
96dc52
 - fix possible memory leak in mnts_add_amdmount().
96dc52
+- fix double unlock in parse_mount().
96dc52
 
96dc52
 25/01/2021 autofs-5.1.7
96dc52
 - make bind mounts propagation slave by default.
96dc52
diff --git a/modules/parse_sun.c b/modules/parse_sun.c
96dc52
index a81d4028..05f53fc2 100644
96dc52
--- a/modules/parse_sun.c
96dc52
+++ b/modules/parse_sun.c
96dc52
@@ -1526,7 +1526,6 @@ dont_expand:
96dc52
 			if (!loc) {
96dc52
 				free(options);
96dc52
 				free(pmapent);
96dc52
-				cache_unlock(mc);
96dc52
 				warn(ap->logopt, MODPREFIX "out of memory");
96dc52
 				return 1;
96dc52
 			}