[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 21/29] plugins/cache: Fixed a bug with destroying FIFO metadat
|
From: |
Alex Bennée |
|
Subject: |
[PATCH v1 21/29] plugins/cache: Fixed a bug with destroying FIFO metadata |
|
Date: |
Wed, 21 Jul 2021 00:26:55 +0100 |
From: Mahmoud Mandour <ma.mandourr@gmail.com>
This manifests itself when associativity degree is greater than the
number of sets and FIFO is used, otherwise it's also a memory leak
whenever FIFO was used.
Signed-off-by: Mahmoud Mandour <ma.mandourr@gmail.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210714172151.8494-2-ma.mandourr@gmail.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
contrib/plugins/cache.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/plugins/cache.c b/contrib/plugins/cache.c
index bf0d2f6097..4a71602639 100644
--- a/contrib/plugins/cache.c
+++ b/contrib/plugins/cache.c
@@ -200,7 +200,7 @@ static void fifo_destroy(Cache *cache)
{
int i;
- for (i = 0; i < cache->assoc; i++) {
+ for (i = 0; i < cache->num_sets; i++) {
g_queue_free(cache->sets[i].fifo_queue);
}
}
--
2.32.0.264.g75ae10bc75
- [PATCH v1 19/29] contrib/gitdm: add more individual contributor entries., (continued)
- [PATCH v1 19/29] contrib/gitdm: add more individual contributor entries., Alex Bennée, 2021/07/20
- [PATCH v1 25/29] hw/tricore: fix inclusion of tricore_testboard, Alex Bennée, 2021/07/20
- [PATCH v1 27/29] gitlab: enable a very minimal build with the tricore container, Alex Bennée, 2021/07/20
- [PATCH v1 26/29] tests/tcg/configure.sh: add handling for assembler only builds, Alex Bennée, 2021/07/20
- [PATCH v1 22/29] plugins/cache: limited the scope of a mutex lock, Alex Bennée, 2021/07/20
- [PATCH v1 14/29] contrib/gitdm: add domain-map for Crudebyte, Alex Bennée, 2021/07/20
- [PATCH v1 24/29] plugins: Fix physical address calculation for IO regions, Alex Bennée, 2021/07/20
- [PATCH v1 18/29] contrib/gitdm: add a new interns group-map for GSoC/Outreachy work, Alex Bennée, 2021/07/20
- [PATCH v1 16/29] contrib/gitdm: add group-map for Netflix, Alex Bennée, 2021/07/20
- [PATCH v1 21/29] plugins/cache: Fixed a bug with destroying FIFO metadata,
Alex Bennée <=
- [PATCH v1 20/29] tcg/plugins: implement a qemu_plugin_user_exit helper, Alex Bennée, 2021/07/20
- [PATCH v1 29/29] gitlab-ci: Extract OpenSBI job rules to reusable section, Alex Bennée, 2021/07/20
- [PATCH v1 28/29] gitlab-ci: Remove the second superfluous macos task, Alex Bennée, 2021/07/20