aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/session/segment_manager.c
diff options
context:
space:
mode:
authorwanghanlin <wanghanlin@corp.netease.com>2021-11-29 15:05:23 +0800
committerwanghanlin <wanghanlin@corp.netease.com>2021-11-29 15:05:23 +0800
commit19f6e260acf1342a773b9d47ef9111c3dab3897b (patch)
tree3bd49d3bf3d0454fd153d8e6329d305fa3dd8fa9 /src/vnet/session/segment_manager.c
parent9adcc9778c316d4c94c6734b8c8e4ce0daede820 (diff)
session: fix clib_rwlock_writer_unlock lost
Type: fix Signed-off-by: wanghanlin <wanghanlin@corp.netease.com> Change-Id: Iab857b056639f7e513f87a6095bea081b7d8349c
Diffstat (limited to 'src/vnet/session/segment_manager.c')
-rw-r--r--src/vnet/session/segment_manager.c5
1 files changed, 4 insertions, 1 deletions
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: