commit | 4490ad2f5d9a8a423f2a9b1be8d500aec77dcc0b | [log] [tgz] |
---|---|---|
author | Soby Mathew <soby.mathew@arm.com> | Fri Sep 13 12:02:11 2019 +0000 |
committer | TrustedFirmware Code Review <review@review.trustedfirmware.org> | Fri Sep 13 12:02:11 2019 +0000 |
tree | f18d5849b9f8d600423a39f989c175396d4f73ce | |
parent | 6cab52016dd372eb40acb8410a69404edb23ba89 [diff] | |
parent | 523024ce80e95ddbe09156dc25fff7741f3aa011 [diff] |
Merge "Assert if power level value greater then PSCI_INVALID_PWR_LVL" into integration
diff --git a/lib/psci/psci_common.c b/lib/psci/psci_common.c index 3bfa068..7c42be7 100644 --- a/lib/psci/psci_common.c +++ b/lib/psci/psci_common.c
@@ -193,6 +193,7 @@ pwrlvl = psci_get_suspend_pwrlvl(); if (pwrlvl == PSCI_INVALID_PWR_LVL) pwrlvl = PLAT_MAX_PWR_LVL; + assert(pwrlvl < PSCI_INVALID_PWR_LVL); return pwrlvl; }