]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/coroutine: check for null stack on wakeup 49097/head
authorCasey Bodley <cbodley@redhat.com>
Mon, 15 Aug 2022 19:41:06 +0000 (15:41 -0400)
committerCory Snyder <csnyder@iland.com>
Mon, 28 Nov 2022 09:11:41 +0000 (04:11 -0500)
Fixes: https://tracker.ceph.com/issues/56920
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit a8250553c6fec5837c45465871f93d386b39584d)

src/rgw/rgw_coroutine.cc

index 0e474ae148e939cff6a69cbe7baaa4723bee03c0..4a2bb15861d87292cbc32ddf503681ddb3765a5f 100644 (file)
@@ -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