vlib: fix typo in ASAN fiber switching 12/43912/2
authorVladimir Zhigulin <[email protected]>
Mon, 20 Oct 2025 12:58:26 +0000 (14:58 +0200)
committerDamjan Marion <[email protected]>
Thu, 23 Oct 2025 09:07:47 +0000 (09:07 +0000)
Fixes ASAN error
"finishing a fiber switch that has not started"

Type: fix

Change-Id: I2f3153fb6635ebcad17942ae95889027c40c2525
Signed-off-by: Vladimir Zhigulin <[email protected]>
src/vlib/node_funcs.h

index a509691..2e5d9ef 100644 (file)
@@ -71,8 +71,9 @@ vlib_process_finish_switch_stack (vlib_main_t * vm)
   const void *bottom_old;
   size_t size_old;
 
-  __sanitizer_finish_switch_fiber (&vm->asan_stack_save, &bottom_old,
+  __sanitizer_finish_switch_fiber (vm->asan_stack_save, &bottom_old,
                                   &size_old);
+  vm->asan_stack_save = NULL;
 #endif
 }