diff options
author | Soby Mathew <soby.mathew@arm.com> | 2019-09-13 12:02:11 +0000 |
---|---|---|
committer | TrustedFirmware Code Review <review@review.trustedfirmware.org> | 2019-09-13 12:02:11 +0000 |
commit | e65d3f45d777f086388d13adf2ad8252d60a93a6 (patch) | |
tree | f18d5849b9f8d600423a39f989c175396d4f73ce /lib/psci/psci_common.c | |
parent | c428fbaeab3191a5b7fda38fc2aa8da3d716ab97 (diff) | |
parent | 0c411c78842929da7de9005bd1d988950920ac99 (diff) | |
download | trusted-firmware-a-e65d3f45d777f086388d13adf2ad8252d60a93a6.tar.gz |
Merge "Assert if power level value greater then PSCI_INVALID_PWR_LVL" into integration
Diffstat (limited to 'lib/psci/psci_common.c')
-rw-r--r-- | lib/psci/psci_common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/psci/psci_common.c b/lib/psci/psci_common.c index 3bfa068527..7c42be7e51 100644 --- a/lib/psci/psci_common.c +++ b/lib/psci/psci_common.c @@ -193,6 +193,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; } |