fix(spmc): fix incorrect FF-A version usage

Fix the wrong FF-A version being used for retrieving existing memory
descriptors for v1.0 clients. Internally these should always be stored
using the latest version rather than client version.

Signed-off-by: Marc Bonnici <marc.bonnici@arm.com>
Change-Id: Ibee1b2452c8d6ebd23bbd9d703c96ca185444093
This commit is contained in:
Marc Bonnici 2022-05-20 14:38:55 +01:00
parent 3954bc3c03
commit 25eb2d41a6
1 changed files with 1 additions and 1 deletions

View File

@ -815,7 +815,7 @@ static int spmc_shmem_check_state_obj(struct spmc_shmem_obj *obj,
if ((obj->desc.handle != inflight_obj->desc.handle) &&
(obj->desc_size == obj->desc_filled)) {
other_mrd = spmc_shmem_obj_get_comp_mrd(inflight_obj,
ffa_version);
FFA_VERSION_COMPILED);
if (other_mrd == NULL) {
return -EINVAL;
}