commit 8e21694efce739f0686ebe42f5d1b63e6b5d3f78 parent 755a67919baf32fd8429d9d13b653b6e87a9cf4e Author: Vincent Forest <vincent.forest@meso-star.com> Date: Thu, 21 Jan 2021 09:38:12 +0100 Fix the pool_new_partition func when an error occurs Diffstat:
| M | src/atrstm_partition.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/atrstm_partition.c b/src/atrstm_partition.c @@ -104,7 +104,7 @@ pool_new_partition(struct pool* pool, const size_t ipart) ASSERT(pool); mutex_lock(pool->mutex); - while(is_list_empty(&pool->parts_free)) { + while(is_list_empty(&pool->parts_free) && !pool->error) { cond_wait(pool->cond_new, pool->mutex); } if(pool->error) {