From: "Yan, Zheng" Subject: [PATCH] vfs: fix reference leak in d_prune_aliases() Date: Wed, 19 Nov 2014 15:50:34 +0800 Message-ID: <1416383434-1908-1-git-send-email-zyan@redhat.com> Cc: viro@zeniv.linux.org.uk, "Yan, Zheng" To: linux-fsdevel@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:40311 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755257AbaKSHuw (ORCPT ); Wed, 19 Nov 2014 02:50:52 -0500 Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Signed-off-by: Yan, Zheng --- 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