ceph: fix potential memory leak in init_caches()
authorChengguang Xu <cgxu519@icloud.com>
Thu, 1 Mar 2018 06:24:51 +0000 (14:24 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 1 Mar 2018 15:39:47 +0000 (16:39 +0100)
commit1c789249578895bb14ab62b4327306439b754857
tree1bb1b07b70d2c31165e57da1a32571f0bce7ccdc
parent18106734b512664a8541026519ce4b862498b6c3
ceph: fix potential memory leak in init_caches()

There is lack of cache destroy operation for ceph_file_cachep
when failing from fscache register.

Signed-off-by: Chengguang Xu <cgxu519@icloud.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/super.c