Commit d4de2116 authored by marko's avatar marko

branches/zip: buf_pool_init(): Initialize buf_pool_zip_mutex before

acquiring buf_pool_mutex.  This avoids triggering the debug assertion
that was added in r2227.
parent a21e427e
...@@ -912,11 +912,10 @@ buf_pool_init(void) ...@@ -912,11 +912,10 @@ buf_pool_init(void)
/* 1. Initialize general fields /* 1. Initialize general fields
------------------------------- */ ------------------------------- */
mutex_create(&buf_pool_mutex, SYNC_BUF_POOL); mutex_create(&buf_pool_mutex, SYNC_BUF_POOL);
mutex_create(&buf_pool_zip_mutex, SYNC_BUF_BLOCK);
buf_pool_mutex_enter(); buf_pool_mutex_enter();
mutex_create(&buf_pool_zip_mutex, SYNC_BUF_BLOCK);
buf_pool->n_chunks = 1; buf_pool->n_chunks = 1;
buf_pool->chunks = chunk = mem_alloc(sizeof *chunk); buf_pool->chunks = chunk = mem_alloc(sizeof *chunk);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment