build: Resolve array index out-of-bound warning [1/1]
authorChia-hung Duan <chiahungduan@google.com>
Wed, 3 Jul 2019 06:43:57 +0000 (14:43 +0800)
committerShuide Chen <shuide.chen@amlogic.com>
Thu, 25 Jul 2019 02:12:09 +0000 (19:12 -0700)
commit3f33091e6bac68a91f47ef62dc4c7838d559317f
tree651d311e1f6dcee1296bf3d5c0a9e49356e86e96
parentbc4e03fbb431f0179a4c11608a9517dcf1dd631e
build: Resolve array index out-of-bound warning [1/1]

PD#SWPL-8241

Problem:
** SYNC FROM GOOGLE **
Build failed due to uninitialzed variable

Solution:
Add assertion as guard

Verify:
Build with Android prebuilt toolchain

Change-Id: Iaf84c857e23c9552bc44f4924bda0510c39e0a32
dvalin/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_mmu_hw_direct.c