From: Apple Date: Tue, 18 Aug 2015 17:23:49 +0000 (+0000) Subject: libpthread-105.40.1.tar.gz X-Git-Tag: os-x-10105^0 X-Git-Url: https://git.saurik.com/apple/libpthread.git/commitdiff_plain/3404ec80a22ac38c97e573f77f7cbdf4bddc8ca9?ds=sidebyside libpthread-105.40.1.tar.gz --- 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; }