plat/arm: css: Sanitize the input to css_validate_power_state
In the case of the platform max power level being less than the system
power level, make sure to not overrun the array of power states.

This fixes Coverity Scan OVERRUN defect CID 267021.

Change-Id: I52646ab9be2fceeb5c331b5dad7a6267991f4197
Signed-off-by: Nariman Poushin <nariman.poushin@linaro.org>
1 parent 9b4c611 commit 8e26307db63b1da1029713ba5d22b3428a2dab4b
@Nariman Poushin Nariman Poushin authored on 1 May 2018
Showing 1 changed file
View
plat/arm/css/common/css_pm.c