From 118a5b8c33cc2fad8ccdc5858253e7ed3dfca513 Mon Sep 17 00:00:00 2001 From: "Brent W. Baccala" Date: Sat, 20 Aug 2016 14:16:38 +0200 Subject: mach-defpager: Add missing unlock * mach-defpager/default_pager.c (destroy_paging_partition): Add missing unlock when destroying partition fails. --- mach-defpager/default_pager.c | 1 + 1 file changed, 1 insertion(+) (limited to 'mach-defpager') 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; } -- cgit v1.2.3