From: Tomohiro Kusumi Date: Tue, 11 Oct 2016 20:52:42 +0000 (-0700) Subject: autofs: use autofs4_free_ino() to kfree dentry data X-Git-Tag: v4.9-rc1~42^2~67 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca552599bfb9888ba9371eb4a9659a02b86529e6;p=platform%2Fkernel%2Flinux-exynos.git 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.net Signed-off-by: Tomohiro Kusumi Signed-off-by: Ian Kent Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/autofs4/inode.c b/fs/autofs4/inode.c index a61521e..438b5bf 100644 --- a/fs/autofs4/inode.c +++ b/fs/autofs4/inode.c @@ -340,7 +340,7 @@ fail_dput: dput(root); goto fail_free; fail_ino: - kfree(ino); + autofs4_free_ino(ino); fail_free: kfree(sbi); s->s_fs_info = NULL;