From: Casey Bodley Date: Mon, 15 Aug 2022 19:41:06 +0000 (-0400) Subject: rgw/coroutine: check for null stack on wakeup X-Git-Tag: v18.0.0~206^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F47613%2Fhead;p=ceph.git rgw/coroutine: check for null stack on wakeup Fixes: https://tracker.ceph.com/issues/56920 Signed-off-by: Casey Bodley --- diff --git a/src/rgw/rgw_coroutine.cc b/src/rgw/rgw_coroutine.cc index 56316c096b0a..797df9d8d670 100644 --- a/src/rgw/rgw_coroutine.cc +++ b/src/rgw/rgw_coroutine.cc @@ -1019,7 +1019,9 @@ bool RGWCoroutine::drain_children(int num_cr_left, void RGWCoroutine::wakeup() { - stack->wakeup(); + if (stack) { + stack->wakeup(); + } } RGWCoroutinesEnv *RGWCoroutine::get_env() const