From: wanghanlin Date: Mon, 29 Nov 2021 07:05:23 +0000 (+0800) Subject: session: fix clib_rwlock_writer_unlock lost X-Git-Tag: v22.06-rc0~178 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=19f6e260acf1342a773b9d47ef9111c3dab3897b;p=vpp.git session: fix clib_rwlock_writer_unlock lost Type: fix Signed-off-by: wanghanlin Change-Id: Iab857b056639f7e513f87a6095bea081b7d8349c --- diff --git a/src/vnet/session/segment_manager.c b/src/vnet/session/segment_manager.c index a55f7d3472c..2d8e657ef98 100644 --- a/src/vnet/session/segment_manager.c +++ b/src/vnet/session/segment_manager.c @@ -178,7 +178,10 @@ segment_manager_add_segment_inline (segment_manager_t *sm, uword segment_size, app_wrk = app_worker_get (sm->app_wrk_index); rv = app_worker_add_segment_notify (app_wrk, fs_handle); if (rv) - return rv; + { + fs_index = rv; + goto done; + } } done: