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

beb904
autofs-5.1.7 - fix double unlock in parse_mount()
beb904
beb904
From: Ian Kent <raven@themaw.net>
beb904
beb904
Coverity: double_unlock: "cache_unlock" unlocks "mc->rwlock" while it
beb904
	  is unlocked.
beb904
beb904
Signed-off-by: Ian Kent <raven@themaw.net>
beb904
---
beb904
 CHANGELOG           |    1 +
beb904
 modules/parse_sun.c |    1 -
beb904
 2 files changed, 1 insertion(+), 1 deletion(-)
beb904
beb904
--- autofs-5.1.4.orig/CHANGELOG
beb904
+++ autofs-5.1.4/CHANGELOG
beb904
@@ -54,6 +54,7 @@
beb904
 - remove redundant if check.
beb904
 - fix possible memory leak in master_parse().
beb904
 - fix possible memory leak in mnts_add_amdmount().
beb904
+- fix double unlock in parse_mount().
beb904
 
beb904
 xx/xx/2018 autofs-5.1.5
beb904
 - fix flag file permission.
beb904
--- autofs-5.1.4.orig/modules/parse_sun.c
beb904
+++ autofs-5.1.4/modules/parse_sun.c
beb904
@@ -1528,7 +1528,6 @@ dont_expand:
beb904
 			if (!loc) {
beb904
 				free(options);
beb904
 				free(pmapent);
beb904
-				cache_unlock(mc);
beb904
 				warn(ap->logopt, MODPREFIX "out of memory");
beb904
 				return 1;
beb904
 			}