// Check if the context is initialized
if (!checkContext(context)) {
- LOGE(TEEC_LIB, "Invalid context %p", context);
+ LOGE(TEEC_LIB, "Invalid context");
return TEEC_ERROR_BAD_PARAMETERS;
}
// Check if the Context is initialized
if (!checkContext(context)) {
- LOGE(TEEC_LIB, "context is not found");
+ LOGE(TEEC_LIB, "Invalid context");
return TEEC_ERROR_BAD_PARAMETERS;
}
return;
}
+ // Check if the Context is initialized
+ if (!checkContext(context)) {
+ LOGE(TEEC_LIB, "Invalid context");
+ return;
+ }
+
+
// Check if the Context imp structure is valid
context_imp = (TEEC_ContextImp *)context->imp;
return TEEC_ERROR_BAD_PARAMETERS;
}
+ // Check if the context is initialized
+ if (!checkContext(context)) {
+ LOGE(TEEC_LIB, "Invalid context");
+ return TEEC_ERROR_BAD_PARAMETERS;
+ }
+
// Check if the context imp is valid
TEEC_ContextImp *context_imp = (TEEC_ContextImp *)context->imp;
return;
}
+ // Check if the context is initialized
+ if (!checkContext(session_imp->context)) {
+ LOGE(TEEC_LIB, "Invalid context");
+ return;
+ }
+
// Check if Context imp is valid
TEEC_ContextImp *context_imp = (TEEC_ContextImp *)session_imp->context->imp;
return TEEC_ERROR_BAD_PARAMETERS;
}
+ // Check if the context is initialized
+ if (!checkContext(session_imp->context)) {
+ LOGE(TEEC_LIB, "Invalid context");
+ return TEEC_ERROR_BAD_PARAMETERS;
+ }
+
// Check if Context imp is valid
TEEC_ContextImp *context_imp = (TEEC_ContextImp *)session_imp->context->imp;
return;
}
+ // Check if the context is initialized
+ if (!checkContext(session_imp->context)) {
+ LOGE(TEEC_LIB, "Invalid context");
+ return;
+ }
+
// Check if Context imp is valid
TEEC_ContextImp *context_imp = (TEEC_ContextImp *)session_imp->context->imp;