Commit 0c411c78 authored by Deepika Bhavnani's avatar Deepika Bhavnani
Browse files

Assert if power level value greater then PSCI_INVALID_PWR_LVL


Signed-off-by: default avatarDeepika Bhavnani <deepika.bhavnani@arm.com>
Change-Id: I4a496d5a8e7a9a127cd6224c968539eb74932fca
parent 5dbdf8e4
...@@ -192,6 +192,7 @@ static unsigned int get_power_on_target_pwrlvl(void) ...@@ -192,6 +192,7 @@ static unsigned int get_power_on_target_pwrlvl(void)
pwrlvl = psci_get_suspend_pwrlvl(); pwrlvl = psci_get_suspend_pwrlvl();
if (pwrlvl == PSCI_INVALID_PWR_LVL) if (pwrlvl == PSCI_INVALID_PWR_LVL)
pwrlvl = PLAT_MAX_PWR_LVL; pwrlvl = PLAT_MAX_PWR_LVL;
assert(pwrlvl < PSCI_INVALID_PWR_LVL);
return pwrlvl; return pwrlvl;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment