diff options
author | Yan, Zheng <zyan@redhat.com> | 2014-11-19 07:50:34 (GMT) |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-11-19 18:07:20 (GMT) |
commit | 4a7795d35e252f38298980530e01e21867f8f856 (patch) | |
tree | 1ed969cdba05031ff6410a14f32225744b351022 /mm | |
parent | ad0eab9293485d1c06237e9249f6d4dfa3d93d4d (diff) | |
download | linux-4a7795d35e252f38298980530e01e21867f8f856.tar.xz |
vfs: fix reference leak in d_prune_aliases()
In "d_prune_alias(): just lock the parent and call __dentry_kill()" the old
dget + d_drop + dput has been replaced with lock_parent + __dentry_kill;
unfortunately, dput() does more than just killing dentry - it also drops the
reference to parent. New variant leaks that reference and needs dput(parent)
after killing the child off.
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions