From be08eeee2dbbfd85db0b79125a34bd27f265b898 Mon Sep 17 00:00:00 2001 From: Dmitry Muhomor Date: Mon, 30 Oct 2023 12:45:45 +0200 Subject: [PATCH] mte: update comment about skipped tag array update in deallocate_small() --- h_malloc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/h_malloc.c b/h_malloc.c index 611d5cf..8ccb3b7 100644 --- a/h_malloc.c +++ b/h_malloc.c @@ -807,8 +807,7 @@ static inline void deallocate_small(void *p, const size_t *expected_size) { #ifdef HAS_ARM_MTE if (likely(is_memtag_enabled())) { arm_mte_tag_and_clear_mem(set_pointer_tag(p, RESERVED_TAG), size); - // metadata->arm_mte_tags is intentionally not updated, it should keep the previous slot - // tag after slot is freed + // metadata->arm_mte_tags is intentionally not updated, see tag_and_clear_slab_slot() skip_zero = true; } #endif