mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
xen/arm: psci: Populate arm_smccc_res on PSCI_FEATURES call
Commit 0bc6a68da5 "xen/arm: Replace call_smc with arm_smccc_smc"
mistakenly forgot to populate arm_smccc_res. So a garbage value was
used as return value.
Coverity-ID: 1476827
Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Release-acked-by: Juergen Gross <jgross@suse.com>
This commit is contained in:
1 parent
e72ecc7615
commit
83ba64c3eb
1 file changed
+1
-1
+1
-1
@@ -87,7 +87,7 @@ static int __init psci_features(uint32_t psci_func_id)
|
||||
if ( psci_ver < PSCI_VERSION(1, 0) )
|
||||
return PSCI_NOT_SUPPORTED;
|
||||
|
||||
arm_smccc_smc(PSCI_1_0_FN32_PSCI_FEATURES, psci_func_id, NULL);
|
||||
arm_smccc_smc(PSCI_1_0_FN32_PSCI_FEATURES, psci_func_id, &res);
|
||||
|
||||
return PSCI_RET(res);
|
||||
}
|
||||
|
||||