]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: prevent accessing deleted reference 38576/head
authormyoungwon oh <ohmyoungwon@gmail.com>
Tue, 15 Dec 2020 01:07:21 +0000 (10:07 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Tue, 15 Dec 2020 09:08:12 +0000 (18:08 +0900)
commitb839203e2dddadac37fe71fc8a66292d108608aa
tree8466be3e92c994791743d8e49a4fb554609e0601
parent591a455498cc66f7f41f0691f5d5c12411db1989
osd: prevent accessing deleted reference

cb in C_SetManifestRefCountDone() was freed
during cancel_manifest_ops(). After that,
~C_SetManifestRefCountDone() try to free the cb
because the cb is not nullptr.
This commit prevents calling a deleted reference.

Fixes: https://tracker.ceph.com/issues/48599
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
src/osd/PrimaryLogPG.cc
src/osd/PrimaryLogPG.h