提交 ca552599 编写于 作者: T Tomohiro Kusumi 提交者: Linus Torvalds

autofs: use autofs4_free_ino() to kfree dentry data

kfree dentry data allocated by autofs4_new_ino() with autofs4_free_ino()
instead of raw kfree.  (since we have the interface to free autofs_info*)

This patch was modified to remove the need to set the dentry info field to
NULL dew to a change in the previous patch.

Link: http://lkml.kernel.org/r/20160812024805.12352.43650.stgit@pluto.themaw.netSigned-off-by: NTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Signed-off-by: NIan Kent <raven@themaw.net>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 1574fa7b
......@@ -340,7 +340,7 @@ int autofs4_fill_super(struct super_block *s, void *data, int silent)
dput(root);
goto fail_free;
fail_ino:
kfree(ino);
autofs4_free_ino(ino);
fail_free:
kfree(sbi);
s->s_fs_info = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册