summaryrefslogtreecommitdiffstats
path: root/fs/ceph/export.c
diff options
context:
space:
mode:
authorDavid Zafman <david.zafman@inktank.com>2012-10-18 23:01:43 +0200
committerSage Weil <sage@inktank.com>2012-10-29 16:17:10 +0100
commit52eb5a900a9863a8b77a895f770e5d825c8e02c6 (patch)
tree91e120e6a3625b6bb8db3cc71af8c622d9a94b7b /fs/ceph/export.c
parentlibceph: avoid NULL kref_put when osd reset races with alloc_msg (diff)
downloadlinux-52eb5a900a9863a8b77a895f770e5d825c8e02c6.tar.xz
linux-52eb5a900a9863a8b77a895f770e5d825c8e02c6.zip
ceph: fix dentry reference leak in encode_fh()
Call to d_find_alias() needs a corresponding dput() This fixes http://tracker.newdream.net/issues/3271 Signed-off-by: David Zafman <david.zafman@inktank.com> Reviewed-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'fs/ceph/export.c')
-rw-r--r--fs/ceph/export.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ceph/export.c b/fs/ceph/export.c
index 8e1b60e557b6..862887004d20 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;
}