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: v16.2.13~31^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e0ccd2564b47683fe7e7af4ecbb8d6fe9aac7f10;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 0e474ae148e9..4a2bb15861d8 100644 --- a/src/rgw/rgw_coroutine.cc +++ b/src/rgw/rgw_coroutine.cc @@ -1037,7 +1037,9 @@ bool RGWCoroutine::drain_children(int num_cr_left, void RGWCoroutine::wakeup() { - stack->wakeup(); + if (stack) { + stack->wakeup(); + } } RGWCoroutinesEnv *RGWCoroutine::get_env() const