Skip to content

Commit 251b4c1

Browse files
Michael Schwarczadbridge
authored andcommitted
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 008bf1b)
1 parent 9588982 commit 251b4c1

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
@@ -274,7 +274,7 @@ int32_t tfm_spm_check_client_version(struct tfm_spm_service_t *service,
274274

275275
switch (service->service_db->minor_policy) {
276276
case TFM_VERSION_POLICY_RELAXED:
277-
if (minor_version < service->service_db->minor_version) {
277+
if (minor_version > service->service_db->minor_version) {
278278
return IPC_ERROR_VERSION;
279279
}
280280
break;

0 commit comments

Comments
 (0)