rockchip/rk3399: Fix memory corruptions or illegal memory access
authorCaesar Wang <wxt@rock-chips.com>
Tue, 30 Jan 2018 01:11:24 +0000 (09:11 +0800)
committerCaesar Wang <wxt@rock-chips.com>
Tue, 30 Jan 2018 06:31:37 +0000 (14:31 +0800)
commitde3c30073e2e781f4b579ee94fa8d00667042b97
tree65e57f02c0dbfbfd9d6688b75ad0524f2d551084
parente47541ac6ef58b213fd915253e16e6fa1ae3b4a9
rockchip/rk3399: Fix memory corruptions or illegal memory access

Coverity scan done for the coreboot project found the issue:
Coverity (*** CID 1385418: Memory - illegal accesses (OVERRUN))
Coverity (*** CID 1385419: Memory - corruptions  (OVERRUN))

Fix the Converity error issue with store_cru[] loop needs to be one
element bigger.

Fixes: ARM-software/tf-issues#544
Change-Id: I420f0a660b24baaa5fc5e78fca242cf750c9bbc7
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
plat/rockchip/rk3399/drivers/pmu/pmu.c