]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - fs/ceph/super.c
ceph: fix potential memory leak in init_caches()
authorChengguang Xu <cgxu519@icloud.com>
Thu, 1 Mar 2018 06:24:51 +0000 (14:24 +0800)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 27 Aug 2018 14:40:05 +0000 (16:40 +0200)
commit9aa1bb42e9d873921091ba69f10234c4ded1df61
tree97458429c59b53aa23815632e747d88a260e62d7
parent28e71fe34d59496c0554388820a576132cfc5603
ceph: fix potential memory leak in init_caches()

BugLink: http://bugs.launchpad.net/bugs/1786352
[ Upstream commit 1c789249578895bb14ab62b4327306439b754857 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
fs/ceph/super.c