summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent W. Baccala <cosine@freesoft.org>2016-08-20 14:16:38 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2016-08-20 14:16:38 +0200
commit118a5b8c33cc2fad8ccdc5858253e7ed3dfca513 (patch)
treee597f8a9487f2692c685bc16394f1c8491a4e2b7
parente03a12dd251745f6b1cb46c97b58181b85156d27 (diff)
mach-defpager: Add missing unlock
* mach-defpager/default_pager.c (destroy_paging_partition): Add missing unlock when destroying partition fails.
-rw-r--r--mach-defpager/default_pager.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mach-defpager/default_pager.c b/mach-defpager/default_pager.c
index 067fd6ca..d7bc75b4 100644
--- a/mach-defpager/default_pager.c
+++ b/mach-defpager/default_pager.c
@@ -1920,6 +1920,7 @@ dprintf("Partition x%p (id x%x) for %s, all_ok %d\n", part, id, name, all_ok);
* Put partition back in.
*/
part->going_away = FALSE;
+ pthread_mutex_unlock(&part->p_lock);
return KERN_FAILURE;
}