From patchwork Tue Nov 20 17:19:48 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [3.5.yuz, extended, stable] Patch "ceph: fix dentry reference leak in encode_fh()" has been added to staging queue From: Herton Ronaldo Krzesinski X-Patchwork-Id: 200483 Message-Id: <1353431988-11396-1-git-send-email-herton.krzesinski@canonical.com> To: David Zafman Cc: kernel-team@lists.ubuntu.com, Sage Weil Date: Tue, 20 Nov 2012 15:19:48 -0200 This is a note to let you know that I have just added a patch titled ceph: fix dentry reference leak in encode_fh() to the linux-3.5.y-queue branch of the 3.5.yuz extended stable tree which can be found at: http://kernel.ubuntu.com/git?p=ubuntu/linux.git;a=shortlog;h=refs/heads/linux-3.5.y-queue If you, or anyone else, feels it should not be added to this tree, please reply to this email. For more information about the 3.5.yuz tree, see https://wiki.ubuntu.com/Kernel/Dev/ExtendedStable Thanks. -Herton ------ >From 9949bb432e95b3a2b7dc8d844b019de010567100 Mon Sep 17 00:00:00 2001 From: David Zafman Date: Thu, 18 Oct 2012 14:01:43 -0700 Subject: [PATCH 75/78] ceph: fix dentry reference leak in encode_fh() commit 52eb5a900a9863a8b77a895f770e5d825c8e02c6 upstream. Call to d_find_alias() needs a corresponding dput() This fixes http://tracker.newdream.net/issues/3271 Signed-off-by: David Zafman Reviewed-by: Sage Weil Signed-off-by: Herton Ronaldo Krzesinski --- fs/ceph/export.c | 2 ++ 1 file changed, 2 insertions(+) -- 1.7.9.5 diff --git a/fs/ceph/export.c b/fs/ceph/export.c index 02ce909..9349bb3 100644 --- a/fs/ceph/export.c +++ b/fs/ceph/export.c @@ -90,6 +90,8 @@ static int ceph_encode_fh(struct inode *inode, u32 *rawfh, int *max_len, *max_len = handle_length; type = 255; } + if (dentry) + dput(dentry); return type; }