summaryrefslogtreecommitdiffstats
path: root/ArmPkg/Drivers/ArmPsciMpServicesDxe
diff options
context:
space:
mode:
authorVishal Oliyil Kunnil <vishalo@qti.qualcomm.com>2024-09-09 17:21:14 -0700
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-09-10 08:54:53 +0000
commitb1ce2e1b67ff3b2478739976e952ac719010f019 (patch)
tree312260fe9985d96a93608baaf5a05ea70eed43b0 /ArmPkg/Drivers/ArmPsciMpServicesDxe
parent61f9695f20a575085d0579a0d3efc41b322ce1ac (diff)
downloadedk2-b1ce2e1b67ff3b2478739976e952ac719010f019.tar.gz
edk2-b1ce2e1b67ff3b2478739976e952ac719010f019.tar.bz2
edk2-b1ce2e1b67ff3b2478739976e952ac719010f019.zip
ArmPkg/ArmPsciMpServices: GetProcessorInfo copies incorrect structure
GetProcessorInfo copies CpuData instead of CpuData.Info. The OUT parameter ProcessorInfoBuffer is of type EFI_PROCESSOR_INFORMATION, not CPU_AP_DATA. Fix it to copy the correct member CpuData.Info. Signed-off-by: Vishal Oliyil Kunnil <quic_vishalo@quicinc.com>
Diffstat (limited to 'ArmPkg/Drivers/ArmPsciMpServicesDxe')
-rw-r--r--ArmPkg/Drivers/ArmPsciMpServicesDxe/ArmPsciMpServicesDxe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ArmPkg/Drivers/ArmPsciMpServicesDxe/ArmPsciMpServicesDxe.c b/ArmPkg/Drivers/ArmPsciMpServicesDxe/ArmPsciMpServicesDxe.c
index e7f4223513..6d075df5c1 100644
--- a/ArmPkg/Drivers/ArmPsciMpServicesDxe/ArmPsciMpServicesDxe.c
+++ b/ArmPkg/Drivers/ArmPsciMpServicesDxe/ArmPsciMpServicesDxe.c
@@ -340,7 +340,7 @@ GetProcessorInfo (
CopyMem (
ProcessorInfoBuffer,
- &mCpuMpData.CpuData[ProcessorIndex],
+ &mCpuMpData.CpuData[ProcessorIndex].Info,
sizeof (EFI_PROCESSOR_INFORMATION)
);
return EFI_SUCCESS;