mirror of
https://github.com/clearlinux/graphene.git
synced 2026-10-03 23:48:19 +00:00
lookup_and_alloc_client(): race condition
There is unnecessary unlock/lock causing a race. remove it. Signed-off-by: Isaku Yamahata <isaku.yamahata@gmail.com>
This commit is contained in:
committed by
Michał Kowalczyk
parent
13b859b789
commit
b49b3898a5
@@ -203,9 +203,7 @@ lookup_and_alloc_client (IDTYPE vmid, const char * uri)
|
||||
unlock(ipc_info_lock);
|
||||
return p;
|
||||
}
|
||||
unlock(ipc_info_lock);
|
||||
|
||||
lock(ipc_info_lock);
|
||||
p = __get_new_ipc_info(vmid, uri, len);
|
||||
if (p) {
|
||||
listp_add(p, head, hlist);
|
||||
|
||||
Reference in New Issue
Block a user