diff options
author | 2016-06-07 17:35:38 -0400 | |
---|---|---|
committer | 2016-06-07 18:28:51 -0400 | |
commit | 599839d12d13ffed46717256d2f4ec190ff798fc (patch) | |
tree | 3a12159cf6ed2a6a3995824f1e67bcfe7b84524a /vlib-api/vlibmemory/memory_shared.c | |
parent | c883fa7cdb19b0ae63e170d1c7c9a43484f070d5 (diff) |
VPP-83: fix collateral damage
Accidentally removed pthread_mutex_unlock (&root_rp->mutex) in the
dead client scan case. Oops. Bad idea.
Change-Id: I488b7e39d01c267052785bd346e8846351db90a9
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'vlib-api/vlibmemory/memory_shared.c')
-rw-r--r-- | vlib-api/vlibmemory/memory_shared.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vlib-api/vlibmemory/memory_shared.c b/vlib-api/vlibmemory/memory_shared.c index 71150fdc..1684acfd 100644 --- a/vlib-api/vlibmemory/memory_shared.c +++ b/vlib-api/vlibmemory/memory_shared.c @@ -287,6 +287,7 @@ int vl_map_shmem (char *region_name, int is_vlib) /* Clean up the root region client list */ pthread_mutex_lock (&root_rp->mutex); svm_client_scan_this_region_nolock (root_rp); + pthread_mutex_unlock (&root_rp->mutex); } pthread_mutex_unlock (&vlib_rp->mutex); am->vlib_rp = vlib_rp; |