Blame SOURCES/autofs-5.1.7-remove-redundant-assignment-in-master_add_amd_mount_section_mounts.patch

96dc52
autofs-5.1.7 - remove redundant assignment in master_add_amd_mount_section_mounts()
96dc52
96dc52
From: Ian Kent <raven@themaw.net>
96dc52
96dc52
Coverity: missing_lock: Accessing "entry->current" without holding lock
96dc52
	  "master_mapent.current_mutex".
96dc52
96dc52
This is initialization not clearing current source. But the field has
96dc52
already been initialized in the master_new_mapent() call.
96dc52
96dc52
Signed-off-by: Ian Kent <raven@themaw.net>
96dc52
---
96dc52
 CHANGELOG       |    1 +
96dc52
 daemon/master.c |    1 -
96dc52
 2 files changed, 1 insertion(+), 1 deletion(-)
96dc52
96dc52
diff --git a/CHANGELOG b/CHANGELOG
96dc52
index c7bc0c39..f95b1aa6 100644
96dc52
--- a/CHANGELOG
96dc52
+++ b/CHANGELOG
96dc52
@@ -58,6 +58,7 @@
96dc52
 - add length check in umount_subtree_mounts().
96dc52
 - fix flags check in umount_multi().
96dc52
 - dont try umount after stat() ENOENT fail.
96dc52
+- remove redundant assignment in master_add_amd_mount_section_mounts().
96dc52
 
96dc52
 25/01/2021 autofs-5.1.7
96dc52
 - make bind mounts propagation slave by default.
96dc52
diff --git a/daemon/master.c b/daemon/master.c
96dc52
index 30d7cf98..84743f80 100644
96dc52
--- a/daemon/master.c
96dc52
+++ b/daemon/master.c
96dc52
@@ -996,7 +996,6 @@ static void master_add_amd_mount_section_mounts(struct master *master, time_t ag
96dc52
 		source->master_line = 0;
96dc52
 
96dc52
 		entry->age = age;
96dc52
-		entry->current = NULL;
96dc52
 
96dc52
 		master_add_mapent(master, entry);
96dc52
 next: