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

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