Change-Id: Ia6bf28f88d9ec05cfdb941f82687f9d061312b1e
TEEC_ContextImp *context_imp;
RegSharedMemData regmem;
+ if (sharedMem) {
+ sharedMem->buffer = NULL;
+ }
+
// Check if the Context is valid
if (!context) {
LOGE(TEEC_LIB, "context is NULL");
return TEE_ERROR_OUT_OF_MEMORY;
TEEC_SharedMemoryImp *sharedMem_imp = (TEEC_SharedMemoryImp *)sharedMem->imp;
- sharedMem->buffer = NULL;
sharedMem_imp->context = context;
/* Allocate shared memory and get the Shared Memory key to be shared with