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

Skip to content
Commit 903129f4 authored by Jordan Crouse's avatar Jordan Crouse
Browse files

msm: kgsl: Fix some questionable pointer math in the profile code



Commit 4f40ffa1 passes a pointer to
a pointer to the ringbuffer memory to adreno_profile_preib_processing
and adreno_profile_postib_processing and expects those functions to
dereference the pointer and write to it.  Unfortunately, the pointer
math attempted to be more clever than the compiler and lost resulting
in a kernel panic when this code is run.

Explicitly dereference the pointer use it and then store the new
pointer back leaving nothing to chance or compiler.

Change-Id: Ic0dedbadf85d0d0c52de69a5af72080229c03dca
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent 67a06d8e
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