All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] vfs: fix reference leak in d_prune_aliases()
@ 2014-11-19  7:50 Yan, Zheng
  2014-11-19  8:24 ` Al Viro
  0 siblings, 1 reply; 2+ messages in thread
From: Yan, Zheng @ 2014-11-19  7:50 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: viro, Yan, Zheng

Signed-off-by: Yan, Zheng <zyan@redhat.com>
---
 fs/dcache.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/dcache.c b/fs/dcache.c
index 3ffef7f..5bc72b0 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -778,6 +778,7 @@ restart:
 			struct dentry *parent = lock_parent(dentry);
 			if (likely(!dentry->d_lockref.count)) {
 				__dentry_kill(dentry);
+				dput(parent);
 				goto restart;
 			}
 			if (parent)
-- 
1.9.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-11-19  8:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-19  7:50 [PATCH] vfs: fix reference leak in d_prune_aliases() Yan, Zheng
2014-11-19  8:24 ` Al Viro

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.