diff options
author | David Zafman <david.zafman@inktank.com> | 2012-10-18 23:01:43 +0200 |
---|---|---|
committer | Alex Elder <elder@inktank.com> | 2012-10-26 23:34:53 +0200 |
commit | 0f9831a89310cebba52d3f526e6cc5c2e403e6f1 (patch) | |
tree | 0352d9dbe02f87b77c7c8d8dbde0557ee022c016 /fs/ceph/export.c | |
parent | rbd: activate v2 image support (diff) | |
download | linux-0f9831a89310cebba52d3f526e6cc5c2e403e6f1.tar.xz linux-0f9831a89310cebba52d3f526e6cc5c2e403e6f1.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.c | 2 |
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; } |