diff options
author | Yan, Zheng <zyan@redhat.com> | 2015-02-02 11:27:56 +0800 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2015-02-19 13:31:40 +0300 |
commit | 5cba372c0fe78d24e83d9e0556ecbeb219625c15 (patch) | |
tree | dcb8742257a0243d9afbe157cb6f6222afd98371 /fs/ceph/dir.c | |
parent | 3de22be6771353241eaec237fe594dfea3daf30f (diff) | |
download | linux-5cba372c0fe78d24e83d9e0556ecbeb219625c15.tar.bz2 |
ceph: fix dentry leaks
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Diffstat (limited to 'fs/ceph/dir.c')
-rw-r--r-- | fs/ceph/dir.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c index 709f3b98ca5c..77eeb768f95a 100644 --- a/fs/ceph/dir.c +++ b/fs/ceph/dir.c @@ -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); |