fix(memory share): error code for incorrect sender ID
In FF-A v1.1 EAC0 specification, section 16.4.1.2, bullet 2 states that
if the Sender Endpoint ID field in transaction descriptor to a
FFA_MEM_RETRIEVE_REQ call doesn't match the owner of the memory region,
the partition manager must return FFA_DENIED, instead of
FFA_INVALID_PARAMETERS.
Change-Id: I448b8ccd1501cc8da5189b92f4644edca3239eef
Signed-off-by: J-Alves <joao.alves@arm.com>
diff --git a/src/ffa_memory.c b/src/ffa_memory.c
index 58ecc2a..dfe31de 100644
--- a/src/ffa_memory.c
+++ b/src/ffa_memory.c
@@ -2255,7 +2255,7 @@
"expected %d for handle %#x.\n",
retrieve_request->sender, memory_region->sender,
handle);
- ret = ffa_error(FFA_INVALID_PARAMETERS);
+ ret = ffa_error(FFA_DENIED);
goto out;
}