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