vpp-83: fix double-unlock
Change-Id: I0b75b4f9bef62aba69e9cc163924f6b985a35455 Signed-off-by: Dave Barach <dave@barachs.net>
This commit is contained in:

committed by
Damjan Marion

parent
45050f8781
commit
b84ccc614d
@ -288,8 +288,9 @@ int vl_map_shmem (char *region_name, int is_vlib)
|
|||||||
pthread_mutex_lock (&root_rp->mutex);
|
pthread_mutex_lock (&root_rp->mutex);
|
||||||
svm_client_scan_this_region_nolock (root_rp);
|
svm_client_scan_this_region_nolock (root_rp);
|
||||||
pthread_mutex_unlock (&root_rp->mutex);
|
pthread_mutex_unlock (&root_rp->mutex);
|
||||||
}
|
} else {
|
||||||
pthread_mutex_unlock (&vlib_rp->mutex);
|
pthread_mutex_unlock (&vlib_rp->mutex);
|
||||||
|
}
|
||||||
am->vlib_rp = vlib_rp;
|
am->vlib_rp = vlib_rp;
|
||||||
vec_add1(am->mapped_shmem_regions, vlib_rp);
|
vec_add1(am->mapped_shmem_regions, vlib_rp);
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user