Skip to content

Commit 008bf1b

Browse files
author
Michael Schwarcz
committed
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
1 parent da01e34 commit 008bf1b

File tree

1 file changed

+1
-1
lines changed
  • components/TARGET_PSA/TARGET_TFM/COMPONENT_SPE/secure_fw/core/ipc

1 file changed

+1
-1
lines changed

components/TARGET_PSA/TARGET_TFM/COMPONENT_SPE/secure_fw/core/ipc/tfm_spm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ int32_t tfm_spm_check_client_version(struct tfm_spm_service_t *service,
272272

273273
switch (service->service_db->minor_policy) {
274274
case TFM_VERSION_POLICY_RELAXED:
275-
if (minor_version < service->service_db->minor_version) {
275+
if (minor_version > service->service_db->minor_version) {
276276
return IPC_ERROR_VERSION;
277277
}
278278
break;

0 commit comments

Comments
 (0)