diff options
author | David Zafman <david.zafman@inktank.com> | 2012-10-18 17:01:43 -0400 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2012-10-29 11:17:10 -0400 |
commit | 52eb5a900a9863a8b77a895f770e5d825c8e02c6 (patch) | |
tree | 91e120e6a3625b6bb8db3cc71af8c622d9a94b7b /fs/ceph | |
parent | 9bd952615a42d7e2ce3fa2c632e808e804637a1a (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.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, | |||
90 | *max_len = handle_length; | 90 | *max_len = handle_length; |
91 | type = 255; | 91 | type = 255; |
92 | } | 92 | } |
93 | if (dentry) | ||
94 | dput(dentry); | ||
93 | return type; | 95 | return type; |
94 | } | 96 | } |
95 | 97 | ||