From 19f6e260acf1342a773b9d47ef9111c3dab3897b Mon Sep 17 00:00:00 2001 From: wanghanlin Date: Mon, 29 Nov 2021 15:05:23 +0800 Subject: session: fix clib_rwlock_writer_unlock lost Type: fix Signed-off-by: wanghanlin Change-Id: Iab857b056639f7e513f87a6095bea081b7d8349c --- src/vnet/session/segment_manager.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/vnet') 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: -- cgit 1.2.3-korg