fix(memory sharing): validate specified total page count
Validate that page count specified in the memory region composite
structure, aligns with the calculated total of its consituents.
Change-Id: Iddaf59b9f83b0f7a0a7e8d45ab3eb1323f95f490
Signed-off-by: J-Alves <joao.alves@arm.com>
diff --git a/inc/hf/ffa_memory_internal.h b/inc/hf/ffa_memory_internal.h
index a4ccd48..7e14765 100644
--- a/inc/hf/ffa_memory_internal.h
+++ b/inc/hf/ffa_memory_internal.h
@@ -162,9 +162,9 @@
struct vm_locked from_locked,
struct ffa_memory_region_constituent **fragments,
uint32_t *fragment_constituent_counts, uint32_t fragment_count,
- uint32_t share_func, struct ffa_memory_access *receivers,
- uint32_t receivers_count, struct mpool *page_pool, bool clear,
- uint32_t *orig_from_mode_ret);
+ uint32_t total_page_count, uint32_t share_func,
+ struct ffa_memory_access *receivers, uint32_t receivers_count,
+ struct mpool *page_pool, bool clear, uint32_t *orig_from_mode_ret);
struct ffa_value ffa_memory_send_complete(
struct vm_locked from_locked, struct share_states_locked share_states,
struct ffa_memory_share_state *share_state, struct mpool *page_pool,