diff options
-rw-r--r-- | kern/slab.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kern/slab.c b/kern/slab.c index 99d5bca..3db4db1 100644 --- a/kern/slab.c +++ b/kern/slab.c @@ -1305,7 +1305,9 @@ fast_free: slab_free: #endif /* SLAB_USE_CPU_POOLS */ + simple_lock(&cache->lock); kmem_cache_free_to_slab(cache, (void *)obj); + simple_unlock(&cache->lock); } void slab_collect(void) |