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