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

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