diff options
| author | Manorit Chawdhry <[email protected]> | 2023-07-14 11:22:24 +0530 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-07-21 19:37:57 -0400 |
| commit | 44dab785809ac1ef808eacf141abbc75ac89ddba (patch) | |
| tree | 76efd15989837c3c20f5c1fc8573c908125f123d | |
| parent | f586cdaef9856326380e89d87a58147d3b374300 (diff) | |
arch: mach-k3: security: fix the check for authentication
Fix regression occurred during refactoring for the mentioned commit.
Fixes: bd6a24759374 ("arm: mach-k3: security: separate out validating binary logic")
Signed-off-by: Manorit Chawdhry <[email protected]>
| -rw-r--r-- | arch/arm/mach-k3/security.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/mach-k3/security.c b/arch/arm/mach-k3/security.c index 02a2c12dbd6..6038c9665ec 100644 --- a/arch/arm/mach-k3/security.c +++ b/arch/arm/mach-k3/security.c @@ -91,8 +91,9 @@ void ti_secure_image_post_process(void **p_image, size_t *p_size) return; } - if (get_device_type() != K3_DEVICE_TYPE_HS_SE && - get_device_type() != K3_DEVICE_TYPE_HS_FS) + if (get_device_type() == K3_DEVICE_TYPE_GP && + (get_device_type() != K3_DEVICE_TYPE_HS_SE && + !ti_secure_cert_detected(*p_image))) return; /* Clean out image so it can be seen by system firmware */ |
