bfd: add missing unlock 91/29091/1
authorKlement Sekera <ksekera@cisco.com>
Fri, 25 Sep 2020 09:43:45 +0000 (09:43 +0000)
committerKlement Sekera <ksekera@cisco.com>
Fri, 25 Sep 2020 13:31:26 +0000 (13:31 +0000)
Thanks to Martin Sustrik for spotting the bug introduced by a316744
and submitting the fix.

Type: fix
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Change-Id: I4984fc32503b0c7b6db3543834dfbbfed2a1f23c

src/vnet/bfd/bfd_main.c

index 4b89757..8072216 100644 (file)
@@ -1190,6 +1190,7 @@ bfd_process (vlib_main_t * vm, vlib_node_runtime_t * rt, vlib_frame_t * f)
        }
       else
        {
+         bfd_unlock (bm);
          (void) vlib_process_wait_for_event (vm);
        }
       event_type = vlib_process_get_events (vm, &event_data);