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: v17.2.6~106^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9e07b7d88cebea7089e96772b838e87c9507a83d;p=ceph.git rgw/coroutine: check for null stack on wakeup Fixes: https://tracker.ceph.com/issues/56920 Signed-off-by: Casey Bodley (cherry picked from commit a8250553c6fec5837c45465871f93d386b39584d) --- diff --git a/src/rgw/rgw_coroutine.cc b/src/rgw/rgw_coroutine.cc index d5da5d80a103..e8524559738f 100644 --- a/src/rgw/rgw_coroutine.cc +++ b/src/rgw/rgw_coroutine.cc @@ -1046,7 +1046,9 @@ bool RGWCoroutine::drain_children(int num_cr_left, void RGWCoroutine::wakeup() { - stack->wakeup(); + if (stack) { + stack->wakeup(); + } } RGWCoroutinesEnv *RGWCoroutine::get_env() const