aboutsummaryrefslogtreecommitdiff
path: root/fs/ceph
diff options
context:
space:
mode:
authorDavid Zafman <david.zafman@inktank.com>2012-10-18 14:01:43 -0700
committerAlex Elder <elder@inktank.com>2012-10-26 16:34:53 -0500
commit0f9831a89310cebba52d3f526e6cc5c2e403e6f1 (patch)
tree0352d9dbe02f87b77c7c8d8dbde0557ee022c016 /fs/ceph
parent35152979e6181b1fbb4b61c3ff641c14df53ad66 (diff)
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')
-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 8e1b60e557b..862887004d2 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;
}