]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/osd/osd: fix sigsegv caused by reusing the moved objcect
authorluo rixin <luorixin@huawei.com>
Fri, 22 Jul 2022 08:48:14 +0000 (16:48 +0800)
committerluo rixin <luorixin@huawei.com>
Fri, 22 Jul 2022 08:48:32 +0000 (16:48 +0800)
commit0a80c68b90da639b88b98e31fdefee0535409cb2
treeba5643fe4a6e92675ec7eaa397ece78cafca34ec
parentaea6200abdd63d87723dd1636a582a47ba73fb71
crimson/osd/osd: fix sigsegv caused by reusing the moved objcect

In some case, `m` will be moved and setted nullptr before
`m->get_spg()` be called, causing a segmentation fault.

Signed-off-by: luo rixin <luorixin@huawei.com>
src/crimson/osd/osd.cc