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

Skip to content
Commit 87095ed6 authored by Jordan Crouse's avatar Jordan Crouse
Browse files

msm: kgsl: Fix enum indexing in the adreno CP parser



enum adreno_cp_addr_regs defines a dummy entry (ADRENO_CP_ADDR_MAX)
to specify the maximum allowable address.  Most notably the value
is used to initalize an array of register addresses. Several functions
incorrectly allowed ADRENO_CP_ADDR_MAX to be used as index which
would overstep the bounds of the array.

Change-Id: Ic0dedbadd993c93aef7c80e0621ea022738e772a
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent 884cda2e
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