summaryrefslogtreecommitdiffstats
path: root/fs/ceph/export.c
diff options
context:
space:
mode:
authorDavid Zafman <david.zafman@inktank.com>2012-10-18 14:01:43 -0700
committerSage Weil <sage@inktank.com>2012-10-29 08:17:10 -0700
commit52eb5a900a9863a8b77a895f770e5d825c8e02c6 (patch)
tree91e120e6a3625b6bb8db3cc71af8c622d9a94b7b /fs/ceph/export.c
parent9bd952615a42d7e2ce3fa2c632e808e804637a1a (diff)
downloadop-kernel-dev-52eb5a900a9863a8b77a895f770e5d825c8e02c6.zip
op-kernel-dev-52eb5a900a9863a8b77a895f770e5d825c8e02c6.tar.gz
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 8e1b60e..8628870 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;
}
OpenPOWER on IntegriCloud