From ea81bf91c90ae23dd9de012bfd7498613be00601 Mon Sep 17 00:00:00 2001 From: Michael Schwarcz Date: Thu, 7 Feb 2019 14:31:27 +0200 Subject: [PATCH] TF-M patch: Fix wrong check in tfm_spm_check_client_version (TF-M issue #236) - Link to bug tracking: https://developer.trustedfirmware.org/T236 (cherry picked from commit 008bf1b2d176c04fb33985e0677e90e3800cb4ca) --- .../TARGET_TFM/COMPONENT_SPE/secure_fw/core/ipc/tfm_spm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/TARGET_PSA/TARGET_TFM/COMPONENT_SPE/secure_fw/core/ipc/tfm_spm.c b/components/TARGET_PSA/TARGET_TFM/COMPONENT_SPE/secure_fw/core/ipc/tfm_spm.c index a60568069a..fe82120a04 100644 --- a/components/TARGET_PSA/TARGET_TFM/COMPONENT_SPE/secure_fw/core/ipc/tfm_spm.c +++ b/components/TARGET_PSA/TARGET_TFM/COMPONENT_SPE/secure_fw/core/ipc/tfm_spm.c @@ -274,7 +274,7 @@ int32_t tfm_spm_check_client_version(struct tfm_spm_service_t *service, switch (service->service_db->minor_policy) { case TFM_VERSION_POLICY_RELAXED: - if (minor_version < service->service_db->minor_version) { + if (minor_version > service->service_db->minor_version) { return IPC_ERROR_VERSION; } break;