ceph: fix dentry leaks

Signed-off-by: Yan, Zheng <zyan@redhat.com>
This commit is contained in:
Yan, Zheng
2015-02-02 11:27:56 +08:00
committed by Ilya Dryomov
parent 3de22be677
commit 5cba372c0f
2 changed files with 6 additions and 3 deletions

View File

@@ -676,6 +676,7 @@ int ceph_handle_notrace_create(struct inode *dir, struct dentry *dentry)
*/
BUG_ON(!result->d_inode);
d_instantiate(dentry, result->d_inode);
d_drop(result);
return 0;
}
return PTR_ERR(result);