From 0b8e1c2aad77f56fbaaad7735c6b5aa36ea3c16c Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Sat, 27 May 2023 23:14:37 -0400 Subject: [PATCH] slab: add lock value to kmalloc_tree initialization --- mem/slab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mem/slab.c b/mem/slab.c index 424c118..963b73f 100644 --- a/mem/slab.c +++ b/mem/slab.c @@ -12,7 +12,7 @@ static slab_t *slab_cache[ARRAY_SIZE(slab_sizes)]; static size_t dma_sizes[] = { 0x1000, 0x10000, 0x100000 }; static slab_t *slab_cache_dma[ARRAY_SIZE(slab_sizes)]; -static struct rbtree kmalloc_tree = { NULL }; +static struct rbtree kmalloc_tree = { NULL, 0 }; static inline void slab_range(slab_t *slab, uintptr_t *o_start, uintptr_t *o_end) {