From a8250553c6fec5837c45465871f93d386b39584d Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Mon, 15 Aug 2022 15:41:06 -0400 Subject: [PATCH] rgw/coroutine: check for null stack on wakeup Fixes: https://tracker.ceph.com/issues/56920 Signed-off-by: Casey Bodley --- src/rgw/rgw_coroutine.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rgw/rgw_coroutine.cc b/src/rgw/rgw_coroutine.cc index 56316c096b0..797df9d8d67 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 -- 2.39.5