mirror of https://github.com/ARMmbed/mbed-os.git
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
parent
280715f9b7
commit
ea81bf91c9
|
@ -274,7 +274,7 @@ int32_t tfm_spm_check_client_version(struct tfm_spm_service_t *service,
|
||||||
|
|
||||||
switch (service->service_db->minor_policy) {
|
switch (service->service_db->minor_policy) {
|
||||||
case TFM_VERSION_POLICY_RELAXED:
|
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;
|
return IPC_ERROR_VERSION;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue