summaryrefslogtreecommitdiff
path: root/kern/slab.c
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2015-07-18 13:33:33 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2015-07-18 16:56:57 +0200
commit63e97b694c2f9eefe33d5ac84c18df0dc102759a (patch)
tree4660380e32626f7b1a28ea1401d7da8249e6ddd3 /kern/slab.c
parent7c9b83c90e2acc4f9eb74713c47796a3c0a08800 (diff)
kern/slab: fix locking
* kern/slab.c (host_slab_info): Fix locking.
Diffstat (limited to 'kern/slab.c')
-rw-r--r--kern/slab.c2
1 files changed, 1 insertions, 1 deletions
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)