projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3515297
)
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
Alex Elder
<elder@inktank.com>
Fri, 26 Oct 2012 21:34:53 +0000
(16:34 -0500)
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>
fs/ceph/export.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ceph/export.c
b/fs/ceph/export.c
index 8e1b60e557b65bea0df86a881376456658a9cffd..862887004d2060bb0fce8e4cac8a0b65d1f5c728 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;
}