mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
arm: scm: check error codes as well during secure authentication
Currently, during secure authentication only return values are checked, error codes are not considered. So, added respective check to verify both return value and error codes value during secure_authentication scm call. Change-Id: Ie3e4fbf8651666001bdfacc0705fb2799a306b96 Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
This commit is contained in:
parent
cdc16476d9
commit
93937d92f3
1 changed files with 2 additions and 0 deletions
|
|
@ -585,6 +585,8 @@ int qca_scm_secure_authenticate(void *cmd_buf, size_t cmd_len)
|
|||
desc.args[2] = * (((unsigned long *)cmd_buf) + 2);
|
||||
|
||||
ret = scm_call_64(SCM_SVC_BOOT, SCM_CMD_SEC_AUTH, &desc);
|
||||
if(!ret && desc.ret[0])
|
||||
return SCM_ERROR;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue