fix(memory sharing): error code wrong sender
According to FF-A v1.0 specification, section 11.3.1.2, if the provided
sender ID in the memory transaction descriptor is not correct, the error
code to use is FFA_DENIED and not FFA_INVALID_PARAMETERS.
Change-Id: I778a248ca707c289c44538970c966dd804270e9f
Signed-off-by: J-Alves <joao.alves@arm.com>
diff --git a/src/api.c b/src/api.c
index d13e3ae..9fff085 100644
--- a/src/api.c
+++ b/src/api.c
@@ -2150,7 +2150,7 @@
/* The sender must match the caller. */
if (memory_region->sender != from->id) {
dlog_verbose("Memory region sender doesn't match caller.\n");
- ret = ffa_error(FFA_INVALID_PARAMETERS);
+ ret = ffa_error(FFA_DENIED);
goto out;
}