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/10502/head
Michael Schwarcz 2019-02-07 14:31:27 +02:00 committed by Oren Cohen
parent 280715f9b7
commit ea81bf91c9
1 changed files with 1 additions and 1 deletions

View File

@ -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;