diff options
author | David Zafman <david.zafman@inktank.com> | 2012-10-18 14:01:43 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2012-10-29 08:17:10 -0700 |
commit | 52eb5a900a9863a8b77a895f770e5d825c8e02c6 (patch) | |
tree | 91e120e6a3625b6bb8db3cc71af8c622d9a94b7b /fs/ceph/export.c | |
parent | 9bd952615a42d7e2ce3fa2c632e808e804637a1a (diff) | |
download | linux-52eb5a900a9863a8b77a895f770e5d825c8e02c6.tar.gz linux-52eb5a900a9863a8b77a895f770e5d825c8e02c6.tar.bz2 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.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; } |