summaryrefslogtreecommitdiff
path: root/debian/patches/fix-locking0001-kern-really-zero-out-unused-simple-lock-info-entries.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/fix-locking0001-kern-really-zero-out-unused-simple-lock-info-entries.patch')
-rw-r--r--debian/patches/fix-locking0001-kern-really-zero-out-unused-simple-lock-info-entries.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/debian/patches/fix-locking0001-kern-really-zero-out-unused-simple-lock-info-entries.patch b/debian/patches/fix-locking0001-kern-really-zero-out-unused-simple-lock-info-entries.patch
new file mode 100644
index 0000000..ff635a2
--- /dev/null
+++ b/debian/patches/fix-locking0001-kern-really-zero-out-unused-simple-lock-info-entries.patch
@@ -0,0 +1,29 @@
+From 435cc1becf334f650dcdd0763cb0022f27f3f54a Mon Sep 17 00:00:00 2001
+From: Justus Winter <4winter@informatik.uni-hamburg.de>
+Date: Wed, 19 Aug 2015 15:57:54 +0200
+Subject: [PATCH gnumach 1/5] kern: really zero-out unused simple lock info
+ entries
+
+* kern/lock.c (simple_unlock): Really zero-out unused simple lock info
+entries.
+---
+ kern/lock.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/kern/lock.c b/kern/lock.c
+index 46c78da..1daf1b4 100644
+--- a/kern/lock.c
++++ b/kern/lock.c
+@@ -219,8 +219,8 @@ void simple_unlock(
+
+ simple_locks_info[i] = simple_locks_info[simple_locks_taken-1];
+ }
+- simple_locks_info[simple_locks_taken] = (struct simple_locks_info) {0};
+ simple_locks_taken--;
++ simple_locks_info[simple_locks_taken] = (struct simple_locks_info) {0};
+ }
+
+ #endif /* MACH_SLOCKS && NCPUS == 1 */
+--
+2.1.4
+