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:
parent
9bd952615a
commit
52eb5a900a
@ -90,6 +90,8 @@ static int ceph_encode_fh(struct inode *inode, u32 *rawfh, int *max_len,
|
|||||||
*max_len = handle_length;
|
*max_len = handle_length;
|
||||||
type = 255;
|
type = 255;
|
||||||
}
|
}
|
||||||
|
if (dentry)
|
||||||
|
dput(dentry);
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user