Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit e9f3b981 authored by Srinivasarao P's avatar Srinivasarao P
Browse files

fix flushing of buffer beyond the range



while flushing tz_buf, the end of buffer is miscalculated.
tz_buz is unsigned int pointer so tz_buf+PAGE_ALIGN(size_pwrlevels)
will actually points after 4*PAGE_ALIGN(size_pwrlevels) bytes.
so it will flush more pages. if those additional pages are
not mapped in MMU it causes panic.

CRs-Fixed: 990681
Change-Id: I6b9f78ce3faca9b890d6766904605c22b21dd44d
Signed-off-by: default avatarSrinivasarao P <spathi@codeaurora.org>
parent e62a48ca
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment