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 008bf1b2d1)
pull/10467/head
Michael Schwarcz 2019-02-07 14:31:27 +02:00 committed by Oren Cohen
parent e4fbe203f1
commit fd50f967d3
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,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;