summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/optee_clientApi/OpteeClientRkFs_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/optee_clientApi/OpteeClientRkFs_common.c b/lib/optee_clientApi/OpteeClientRkFs_common.c
index 7dcd1eb2f1..2ae83a0ce8 100644
--- a/lib/optee_clientApi/OpteeClientRkFs_common.c
+++ b/lib/optee_clientApi/OpteeClientRkFs_common.c
@@ -43,7 +43,7 @@ static int get_rkss_version(void)
return rkss_version;
}
- read_buff = (uint8_t *)malloc(512);
+ read_buff = (uint8_t *)memalign(CONFIG_SYS_CACHELINE_SIZE, 512);
if (!read_buff) {
printf("TEEC: Malloc failed!\n");
return -1;