autofs: remove ino free in autofs4_dir_symlink()
authorIan Kent <raven@themaw.net>
Sat, 10 Sep 2016 10:34:23 +0000 (20:34 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Sat, 10 Sep 2016 10:34:23 +0000 (20:34 +1000)
commit603c7412ef20dfaff79709ddf3f47a11020a3de7
treecc86c6a84938876b02a079ce49b37b7a31124ded
parent9ec1a6e5adaa6b0561c2b6c79c8ba8421a291db9
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>
fs/autofs4/root.c
This page took 0.025393 seconds and 5 git commands to generate.