summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisping Lin <hisping.lin@rock-chips.com>2021-11-01 11:20:35 +0300
committerJianhong Chen <chenjh@rock-chips.com>2021-11-03 04:59:49 +0300
commit5385f6ef28f264b74e085a93a8dc9510eefb13f2 (patch)
tree99e01f004a9f8f46907146554081cb1ac3d29791
parent31120150cf3d50d51e881e274a6554b47b57ccda (diff)
downloadu-boot-5385f6ef28f264b74e085a93a8dc9510eefb13f2.tar.xz
lib: optee_clientApi: data alignment for get_rkss_version
Change-Id: I351704ef104742d50cb39997db2fda181cf866b6 Signed-off-by: Hisping Lin <hisping.lin@rock-chips.com>
-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;