projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1574fa7
)
autofs: use autofs4_free_ino() to kfree dentry data
author
Tomohiro Kusumi
<
[email protected]
>
Tue, 11 Oct 2016 20:52:42 +0000
(13:52 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 11 Oct 2016 22:06:31 +0000
(15:06 -0700)
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/
[email protected]
Signed-off-by: Tomohiro Kusumi <
[email protected]
>
Signed-off-by: Ian Kent <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/autofs4/inode.c
patch
|
blob
|
history
diff --git
a/fs/autofs4/inode.c
b/fs/autofs4/inode.c
index a61521eaf11396c1a6500ed5e11b0a12517823ef..438b5bf675b6a2a65651b4b06a397865d9d94af1 100644
(file)
--- 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;