diff options
Diffstat (limited to 'debian/patches/upstreamme0002-kern-bootstrap-fix-locking.patch')
-rw-r--r-- | debian/patches/upstreamme0002-kern-bootstrap-fix-locking.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/debian/patches/upstreamme0002-kern-bootstrap-fix-locking.patch b/debian/patches/upstreamme0002-kern-bootstrap-fix-locking.patch new file mode 100644 index 0000000..c019e36 --- /dev/null +++ b/debian/patches/upstreamme0002-kern-bootstrap-fix-locking.patch @@ -0,0 +1,34 @@ +From 661a0a5c59714b95633a866f717d8072c67f7ac7 Mon Sep 17 00:00:00 2001 +From: Justus Winter <4winter@informatik.uni-hamburg.de> +Date: Sat, 18 Jul 2015 18:40:47 +0200 +Subject: [PATCH gnumach 2/5] kern/bootstrap: fix locking + +* kern/bootstrap.c (boot_script_exec_cmd): Add missing unlock. +(user_bootstrap): Likewise. +--- + kern/bootstrap.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/kern/bootstrap.c b/kern/bootstrap.c +index e70e1f6..50388ad 100644 +--- a/kern/bootstrap.c ++++ b/kern/bootstrap.c +@@ -735,6 +735,7 @@ boot_script_exec_cmd (void *hook, task_t task, char *path, int argc, + thread_sleep ((event_t) &info, simple_lock_addr(info.lock), FALSE); + simple_lock (&info.lock); + } ++ simple_unlock (&info.lock); + printf ("\n"); + } + +@@ -769,6 +770,7 @@ static void user_bootstrap(void) + simple_lock (&info->lock); + assert (!info->done); + info->done = 1; ++ simple_unlock (&info->lock); + thread_wakeup ((event_t) info); + + /* +-- +2.1.4 + |