From 0e8758528b75cd8c523e490f46cc352f1d60073b Mon Sep 17 00:00:00 2001 From: Michal Mielewczyk Date: Thu, 22 Apr 2021 14:17:39 +0200 Subject: [PATCH] Return mempool instead of enum Signed-off-by: Michal Mielewczyk --- modules/cas_cache/utils/utils_mpool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cas_cache/utils/utils_mpool.c b/modules/cas_cache/utils/utils_mpool.c index 3ca1ede..1033371 100644 --- a/modules/cas_cache/utils/utils_mpool.c +++ b/modules/cas_cache/utils/utils_mpool.c @@ -88,7 +88,7 @@ static env_allocator *env_mpool_get_allocator( unsigned int idx; if (unlikely(count == 0)) - return env_mpool_1; + return mallocator->allocator[env_mpool_1]; idx = 31 - __builtin_clz(count);