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

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