From: Florin Coras Date: Tue, 7 Feb 2023 17:01:59 +0000 (-0800) Subject: vcl: drop lock on segment attach failure X-Git-Tag: v23.10-rc0~259 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=aaad4f977cd7337b37cc6f00019f601f07abdced;p=vpp.git vcl: drop lock on segment attach failure Type: fix Signed-off-by: Florin Coras Change-Id: I3bc2c7986f492b7b7dfbc84e4893202354223790 --- diff --git a/src/vcl/vcl_private.c b/src/vcl/vcl_private.c index 589380d27aa..847e32c80f0 100644 --- a/src/vcl/vcl_private.c +++ b/src/vcl/vcl_private.c @@ -435,6 +435,7 @@ vcl_segment_attach (u64 segment_handle, char *name, ssvm_segment_type_t type, if ((rv = fifo_segment_attach (&vcm->segment_main, a))) { clib_warning ("svm_fifo_segment_attach ('%s') failed", name); + clib_rwlock_writer_unlock (&vcm->segment_table_lock); return rv; } hash_set (vcm->segment_table, segment_handle, a->new_segment_indices[0]);