From 6ced60471d0e14bcba3848c8cca5e4c4e5931a85 Mon Sep 17 00:00:00 2001 From: Jan Musial Date: Wed, 14 Apr 2021 14:57:08 +0200 Subject: [PATCH] Additional safeguard in acp_remove_core Signed-off-by: Jan Musial --- src/cleaning/acp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cleaning/acp.c b/src/cleaning/acp.c index f7eef66..d48fd97 100644 --- a/src/cleaning/acp.c +++ b/src/cleaning/acp.c @@ -666,6 +666,7 @@ void cleaning_policy_acp_remove_core(ocf_cache_t cache, uint64_t i; ENV_BUG_ON(acp->chunks_total < acp->num_chunks[core_id]); + ENV_BUG_ON(!acp->chunk_info[core_id]); if (acp->state.in_progress && acp->state.chunk->core_id == core_id) { acp->state.in_progress = false;