diff --git a/services/std_svc/spm/el3_spmc/spmc_shared_mem.c b/services/std_svc/spm/el3_spmc/spmc_shared_mem.c index 1602981bf..4a24108e0 100644 --- a/services/std_svc/spm/el3_spmc/spmc_shared_mem.c +++ b/services/std_svc/spm/el3_spmc/spmc_shared_mem.c @@ -304,7 +304,7 @@ overlapping_memory_regions(struct ffa_comp_mrd *region1, if ((region1_start >= region2_start && region1_start < region2_end) || - (region1_end >= region2_start + (region1_end > region2_start && region1_end < region2_end)) { WARN("Overlapping mem regions 0x%lx-0x%lx & 0x%lx-0x%lx\n", region1_start, region1_end, @@ -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; }