Blame SOURCES/autofs-5.1.7-fix-missing-lock-release-in-mount_subtree.patch

49b67f
autofs-5.1.7 - fix missing lock release in mount_subtree()
49b67f
49b67f
From: Ian Kent <raven@themaw.net>
49b67f
49b67f
Covarity: missing_unlock: Returning without unlocking "mc->rwlock".
49b67f
49b67f
Signed-off-by: Ian Kent <raven@themaw.net>
49b67f
---
49b67f
 CHANGELOG           |    1 +
49b67f
 modules/parse_sun.c |    1 +
49b67f
 2 files changed, 2 insertions(+)
49b67f
49b67f
--- autofs-5.1.4.orig/CHANGELOG
49b67f
+++ autofs-5.1.4/CHANGELOG
49b67f
@@ -61,6 +61,7 @@
49b67f
 - remove redundant assignment in master_add_amd_mount_section_mounts().
49b67f
 - fix dead code in mnts_add_mount().
49b67f
 - fix arg not used in error print.
49b67f
+- fix missing lock release in mount_subtree().
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
@@ -1107,6 +1107,7 @@ static int mount_subtree(struct autofs_p
49b67f
 		len = mount_fullpath(key, PATH_MAX, ap->path, ap->len, me->key);
49b67f
 		if (!len) {
49b67f
 			warn(ap->logopt, "path loo long");
49b67f
+			cache_unlock(mc);
49b67f
 			return 1;
49b67f
 		}
49b67f
 		key[len] = '/';