diff options
author | Gaurav Nebhwani <gauravn@codeaurora.org> | 2016-05-04 12:15:04 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-07-12 04:30:16 -0700 |
commit | df62f4b4daf3876fbfc9fb92ac6fdfe5f87a650a (patch) | |
tree | abc2ed921dc072c89466d913826efdf6b4ad3371 | |
parent | 4e23cccc559062d170643df9122517ea587c103c (diff) |
platform: msm_shared: invalidate buffer before scm call
Invalidate buffer before scm call.
Change-Id: I185c022383bb11c511252041b50e2d5496133503
-rw-r--r-- | platform/msm_shared/scm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/msm_shared/scm.c b/platform/msm_shared/scm.c index f9a73778..e3cac7ce 100644 --- a/platform/msm_shared/scm.c +++ b/platform/msm_shared/scm.c @@ -1102,6 +1102,8 @@ int scm_random(uintptr_t * rbuf, uint32_t r_len) scm_arg.x2 = (uint32_t) rand_buf; scm_arg.x3 = r_len; + arch_clean_invalidate_cache_range((addr_t) rand_buf, r_len); + ret = scm_call2(&scm_arg, NULL); if (!ret) arch_clean_invalidate_cache_range((addr_t) rand_buf, r_len); |