summaryrefslogtreecommitdiff
path: root/fs/ceph/cache.c
diff options
context:
space:
mode:
authorChengguang Xu <cgxu519@gmx.com>2018-03-14 08:47:33 +0300
committerIlya Dryomov <idryomov@gmail.com>2018-04-02 11:12:49 +0300
commit50c55aeca27f09ceda0cd58b72b0addeecef74eb (patch)
tree58598250a7a96fca1ecc48d90bdead6a5a5e5fae /fs/ceph/cache.c
parent98cfda81040f4a6925a98567d036a918e855d4ec (diff)
downloadlinux-50c55aeca27f09ceda0cd58b72b0addeecef74eb.tar.xz
ceph: fix invalid point dereference for error case in mdsc destroy
1. set fsc->mdsc after successfully allocate all necessary memory in mdsc init. 2. if fsc->mdsc is NULL, just skip destroy operation in mdsc destroy. Signed-off-by: Chengguang Xu <cgxu519@gmx.com> Reviewed-by: "Yan, Zheng" <zyan@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/cache.c')
0 files changed, 0 insertions, 0 deletions