]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd4f52344f94666f124c23c582dc092b8bf7c40f8
tree1bb1b07b70d2c31165e57da1a32571f0bce7ccdc
parent06fdc91a0ba43c841768eefeba9074330648c65a
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