diff options
author | Chengguang Xu <cgxu519@icloud.com> | 2018-02-09 20:40:59 +0800 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2018-02-26 16:20:07 +0100 |
commit | 18106734b512664a8541026519ce4b862498b6c3 (patch) | |
tree | f9cccd9207dda67d143d000a3464a9469853f2ca /lib/lcm.c | |
parent | 937441f3a3158d5510ca8cc78a82453f57a96365 (diff) | |
download | linux-18106734b512664a8541026519ce4b862498b6c3.tar.gz linux-18106734b512664a8541026519ce4b862498b6c3.tar.bz2 linux-18106734b512664a8541026519ce4b862498b6c3.zip |
ceph: fix dentry leak when failing to init debugfs
When failing from ceph_fs_debugfs_init() in ceph_real_mount(),
there is lack of dput of root_dentry and it causes slab errors,
so change the calling order of ceph_fs_debugfs_init() and
open_root_dentry() and do some cleanups to avoid this issue.
Signed-off-by: Chengguang Xu <cgxu519@icloud.com>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'lib/lcm.c')
0 files changed, 0 insertions, 0 deletions