Skip to contentSkip to conversation

autofs-remove-ino-free-in-autofs4_dir_symlink.patch removed from -mm tree

merged [email protected] 1 participant 1 message Oct 12, 2016

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: autofs: remove ino free in autofs4_dir_symlink()
has been removed from the -mm tree. Its filename was
autofs-remove-ino-free-in-autofs4_dir_symlink.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Ian Kent <[email protected]>
Subject: autofs: remove ino free in autofs4_dir_symlink()

The inode allocation failure case in autofs4_dir_symlink() frees the autofs dentry info of the dentry without setting ->d_fsdata to NULL.

That could lead to a double free so just get rid of the free and leave it to ->d_release().

---

 fs/autofs4/root.c |    2 --
 1 file changed, 2 deletions(-)
fs/autofs4/root.c renamed from fs/autofs4/root.c~autofs-remove-ino-free-in-autofs4_dir_symlink +0 -2
diff -puN fs/autofs4/root.c~autofs-remove-ino-free-in-autofs4_dir_symlink fs/autofs4/root.c
@@ -577,8 +577,6 @@ static int autofs4_dir_symlink(struct in
 	inode = autofs4_get_inode(dir->i_sb, S_IFLNK | 0555);
 	if (!inode) {
 		kfree(cp);
-		if (!dentry->d_fsdata)
-			kfree(ino);
 		return -ENOMEM;
 	}
 	inode->i_private = cp;

_

Patches currently in -mm which might be from [email protected] are