diff options
Diffstat (limited to 'lib/pmf/pmf_smc.c')
-rw-r--r-- | lib/pmf/pmf_smc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/pmf/pmf_smc.c b/lib/pmf/pmf_smc.c index 71486dfcb..f3dd11276 100644 --- a/lib/pmf/pmf_smc.c +++ b/lib/pmf/pmf_smc.c @@ -26,6 +26,10 @@ uintptr_t pmf_smc_handler(unsigned int smc_fid, int rc; unsigned long long ts_value; + /* Determine if the cpu exists of not */ + if (!is_valid_mpidr(x2)) + return PSCI_E_INVALID_PARAMS; + if (((smc_fid >> FUNCID_CC_SHIFT) & FUNCID_CC_MASK) == SMC_32) { x1 = (uint32_t)x1; |