projects
/
wrapfs-3.6.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6f8fbb
)
ceph: fix dentry reference leak in encode_fh()
author
David Zafman
<david.zafman@inktank.com>
Thu, 18 Oct 2012 21:01:43 +0000
(14:01 -0700)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 5 Nov 2012 08:56:50 +0000
(09:56 +0100)
commit
52eb5a900a9863a8b77a895f770e5d825c8e02c6
upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ceph/export.c
patch
|
blob
|
history
diff --git
a/fs/ceph/export.c
b/fs/ceph/export.c
index 02ce90972d81ca6e8b60ed580931c676c441fc2c..9349bb37a2fe68df93651e6afeb384468157edd2 100644
(file)
--- 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;
}