]> git.baikalelectronics.ru Git - kernel.git/commit
autofs: remove ino free in autofs4_dir_symlink()
authorIan Kent <raven@themaw.net>
Tue, 11 Oct 2016 20:52:39 +0000 (13:52 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 11 Oct 2016 22:06:31 +0000 (15:06 -0700)
commit5ac02605340d4e9fc783319cf27a1e6ca1f35644
tree979e92f064fa00700c171e8b6083786c8ffe7273
parent5665950e1b1940b112d5627eb21d36f117279320
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().

Link: http://lkml.kernel.org/r/20160812024759.12352.10653.stgit@pluto.themaw.net
Signed-off-by: Ian Kent <raven@themaw.net>
Cc: Tomohiro Kusumi <kusumi.tomohiro@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/autofs4/root.c