dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
David Zafman 2012-10-18 14:01:43 -07:00 committed by Alex Elder
parent 35152979e6
commit 0f9831a893
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}