diff options
author | J-Alves <joao.alves@arm.com> | 2020-11-06 10:49:56 +0000 |
---|---|---|
committer | J-Alves <joao.alves@arm.com> | 2020-11-06 14:58:50 +0000 |
commit | 0435cae55a3d4c02d9fa6c2aea70aa07796b9267 (patch) | |
tree | 125395b985f3d31c369211717ddcd6783b60d116 /include | |
parent | 949f423d4648218bcb734874d7698a72d86563b1 (diff) | |
download | tf-a-tests-0435cae55a3d4c02d9fa6c2aea70aa07796b9267.tar.gz |
cactus: fix access to uninitialized array
Array 'receivers' of 'struct ffa_memory_region' was being accessed
without being initialized, in function 'ffa_memory_management_test'.
Changed it to process 'ffa_memory_region' transaction descriptor
from the partition's mailbox.
Change-Id: If240a3d0bc554558cd06bc8200a2f66d501b7f4f
Signed-off-by: J-Alves <joao.alves@arm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/runtime_services/ffa_helpers.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/runtime_services/ffa_helpers.h b/include/runtime_services/ffa_helpers.h index 766ea39fe..c68a01413 100644 --- a/include/runtime_services/ffa_helpers.h +++ b/include/runtime_services/ffa_helpers.h @@ -236,6 +236,9 @@ typedef uint32_t ffa_memory_region_flags_t; #define FFA_MEMORY_REGION_TRANSACTION_TYPE_LEND ((0x2U) << 3) #define FFA_MEMORY_REGION_TRANSACTION_TYPE_DONATE ((0x3U) << 3) +/** The maximum number of recipients a memory region may be sent to. */ +#define MAX_MEM_SHARE_RECIPIENTS 1U + /** * This corresponds to table "Endpoint memory access descriptor" of the FFA 1.0 * specification. |