Chengguang Xu 50c55aeca2 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>
2018-04-02 10:12:49 +02:00
..
2017-06-14 19:37:23 +02:00
2016-06-01 10:31:50 +02:00
2018-04-02 10:12:47 +02:00
2018-04-02 10:12:49 +02:00
2018-04-02 10:12:49 +02:00
2018-04-02 10:12:49 +02:00
2018-04-02 10:12:49 +02:00