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

9a499a
autofs-5.1.7 - remove redundant assignment in master_add_amd_mount_section_mounts()
9a499a
9a499a
From: Ian Kent <raven@themaw.net>
9a499a
9a499a
Coverity: missing_lock: Accessing "entry->current" without holding lock
9a499a
	  "master_mapent.current_mutex".
9a499a
9a499a
This is initialization not clearing current source. But the field has
9a499a
already been initialized in the master_new_mapent() call.
9a499a
9a499a
Signed-off-by: Ian Kent <raven@themaw.net>
9a499a
---
9a499a
 CHANGELOG       |    1 +
9a499a
 daemon/master.c |    1 -
9a499a
 2 files changed, 1 insertion(+), 1 deletion(-)
9a499a
9a499a
--- autofs-5.1.4.orig/CHANGELOG
9a499a
+++ autofs-5.1.4/CHANGELOG
9a499a
@@ -58,6 +58,7 @@
9a499a
 - add length check in umount_subtree_mounts().
9a499a
 - fix flags check in umount_multi().
9a499a
 - dont try umount after stat() ENOENT fail.
9a499a
+- remove redundant assignment in master_add_amd_mount_section_mounts().
9a499a
 
9a499a
 xx/xx/2018 autofs-5.1.5
9a499a
 - fix flag file permission.
9a499a
--- autofs-5.1.4.orig/daemon/master.c
9a499a
+++ autofs-5.1.4/daemon/master.c
9a499a
@@ -996,7 +996,6 @@ static void master_add_amd_mount_section
9a499a
 		source->master_line = 0;
9a499a
 
9a499a
 		entry->age = age;
9a499a
-		entry->current = NULL;
9a499a
 
9a499a
 		master_add_mapent(master, entry);
9a499a
 next: