diff options
author | Tomohiro Kusumi <kusumi.tomohiro@gmail.com> | 2016-10-11 16:52:42 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-10-11 18:06:31 -0400 |
commit | ca552599bfb9888ba9371eb4a9659a02b86529e6 (patch) | |
tree | e1e285bb2943d5428a9cd1e071112028aca912cc | |
parent | 1574fa7beb9f71a60b5b8f2532ca69d3153ded79 (diff) |
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 <kusumi.tomohiro@gmail.com>
Signed-off-by: Ian Kent <raven@themaw.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | fs/autofs4/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/autofs4/inode.c b/fs/autofs4/inode.c index a61521eaf113..438b5bf675b6 100644 --- a/fs/autofs4/inode.c +++ b/fs/autofs4/inode.c | |||
@@ -340,7 +340,7 @@ fail_dput: | |||
340 | dput(root); | 340 | dput(root); |
341 | goto fail_free; | 341 | goto fail_free; |
342 | fail_ino: | 342 | fail_ino: |
343 | kfree(ino); | 343 | autofs4_free_ino(ino); |
344 | fail_free: | 344 | fail_free: |
345 | kfree(sbi); | 345 | kfree(sbi); |
346 | s->s_fs_info = NULL; | 346 | s->s_fs_info = NULL; |