From 3404ec80a22ac38c97e573f77f7cbdf4bddc8ca9 Mon Sep 17 00:00:00 2001 From: Apple Date: Tue, 18 Aug 2015 17:23:49 +0000 Subject: [PATCH] libpthread-105.40.1.tar.gz --- kern/kern_synch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kern/kern_synch.c b/kern/kern_synch.c index ca75f6f..cd698ec 100644 --- a/kern/kern_synch.c +++ b/kern/kern_synch.c @@ -1609,6 +1609,7 @@ ksyn_wqfind(user_addr_t uaddr, uint32_t mgen, uint32_t ugen, uint32_t sgen, int pthread_list_lock(); res = ksyn_wq_hash_lookup(uaddr, current_proc(), flags, &kwq, &hashptr, &object, &offset); if (res != 0) { + pthread_list_unlock(); break; } if (kwq == NULL && nkwq == NULL) { @@ -1679,9 +1680,9 @@ ksyn_wqfind(user_addr_t uaddr, uint32_t mgen, uint32_t ugen, uint32_t sgen, int kwq->kw_dropcount++; } } + pthread_list_unlock(); break; } - pthread_list_unlock(); if (kwqp != NULL) { *kwqp = kwq; } -- 2.45.2