Assert if power level value greater then PSCI_INVALID_PWR_LVL

Signed-off-by: Deepika Bhavnani <deepika.bhavnani@arm.com>
Change-Id: I4a496d5a8e7a9a127cd6224c968539eb74932fca
This commit is contained in:
Deepika Bhavnani 2019-08-17 01:10:02 +03:00
parent 5dbdf8e4ea
commit 0c411c7884
1 changed files with 1 additions and 0 deletions

View File

@ -192,6 +192,7 @@ static unsigned int get_power_on_target_pwrlvl(void)
pwrlvl = psci_get_suspend_pwrlvl();
if (pwrlvl == PSCI_INVALID_PWR_LVL)
pwrlvl = PLAT_MAX_PWR_LVL;
assert(pwrlvl < PSCI_INVALID_PWR_LVL);
return pwrlvl;
}