diff options
author | Guochun Huang <hero.huang@rock-chips.com> | 2019-04-12 11:18:40 +0800 |
---|---|---|
committer | Guochun Huang <hero.huang@rock-chips.com> | 2019-04-12 11:18:40 +0800 |
commit | 5b99639235f57149cbbbbbd629c3af58c994e139 (patch) | |
tree | dfb11d09c9de986358d8de11d390126100e05d80 /cmd/optee.c | |
parent | 314d43c94ff2a64cf69871e776754c63a9a5743a (diff) | |
parent | 0436a29d64ac791fefc764fadc7e64ba16bb6b25 (diff) |
Merge remote-tracking branch 'remotes/rk3399/next-dev' into rk3399-pie-gms-express-baseline
Diffstat (limited to 'cmd/optee.c')
-rw-r--r-- | cmd/optee.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/cmd/optee.c b/cmd/optee.c index f1140176b6..705ac87433 100644 --- a/cmd/optee.c +++ b/cmd/optee.c @@ -30,9 +30,13 @@ int test_secure_storage_default(void) } debug("%s start\n", __func__); - OpteeClientApiLibInitialize(); + TeecResult = OpteeClientApiLibInitialize(); + if (TeecResult != TEEC_SUCCESS) + return -1; TeecResult = TEEC_InitializeContext(NULL, &TeecContext); + if (TeecResult != TEEC_SUCCESS) + return -1; TeecOperation.paramTypes = TEEC_PARAM_TYPES(TEEC_VALUE_INPUT, TEEC_NONE, @@ -164,9 +168,13 @@ int test_secure_storage_security_partition(void) } debug("%s start\n", __func__); - OpteeClientApiLibInitialize(); + TeecResult = OpteeClientApiLibInitialize(); + if (TeecResult != TEEC_SUCCESS) + return -1; TeecResult = TEEC_InitializeContext(NULL, &TeecContext); + if (TeecResult != TEEC_SUCCESS) + return -1; TeecOperation.paramTypes = TEEC_PARAM_TYPES(TEEC_VALUE_INPUT, TEEC_NONE, |