summaryrefslogtreecommitdiff
path: root/debian/patches/upstreamme0001-kern-slab-fix-locking.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/upstreamme0001-kern-slab-fix-locking.patch')
-rw-r--r--debian/patches/upstreamme0001-kern-slab-fix-locking.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/debian/patches/upstreamme0001-kern-slab-fix-locking.patch b/debian/patches/upstreamme0001-kern-slab-fix-locking.patch
new file mode 100644
index 0000000..986ad7a
--- /dev/null
+++ b/debian/patches/upstreamme0001-kern-slab-fix-locking.patch
@@ -0,0 +1,26 @@
+From 63e97b694c2f9eefe33d5ac84c18df0dc102759a Mon Sep 17 00:00:00 2001
+From: Justus Winter <4winter@informatik.uni-hamburg.de>
+Date: Sat, 18 Jul 2015 13:33:33 +0200
+Subject: [PATCH gnumach 1/5] kern/slab: fix locking
+
+* kern/slab.c (host_slab_info): Fix locking.
+---
+ kern/slab.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/kern/slab.c b/kern/slab.c
+index 60378b5..1114cfa 100644
+--- a/kern/slab.c
++++ b/kern/slab.c
+@@ -1503,7 +1503,7 @@ kern_return_t host_slab_info(host_t host, cache_info_array_t *infop,
+ i = 0;
+
+ list_for_each_entry(&kmem_cache_list, cache, node) {
+- simple_lock(&cache_lock);
++ simple_lock(&cache->lock);
+ info[i].flags = ((cache->flags & KMEM_CF_NO_CPU_POOL)
+ ? CACHE_FLAGS_NO_CPU_POOL : 0)
+ | ((cache->flags & KMEM_CF_SLAB_EXTERNAL)
+--
+2.1.4
+