]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw/coroutine: check for null stack on wakeup
authorCasey Bodley <cbodley@redhat.com>
Mon, 15 Aug 2022 19:41:06 +0000 (15:41 -0400)
committerCasey Bodley <cbodley@redhat.com>
Mon, 22 Aug 2022 23:28:19 +0000 (19:28 -0400)
Fixes: https://tracker.ceph.com/issues/56920
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_coroutine.cc

index 56316c096b0a8bd0a141de3a6f6d05f0e7d029f0..797df9d8d67014718b57b27627c9188c622a8231 100644 (file)
@@ -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