summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2023-01-30 13:51:02 +0100
committerFelix Held <felix-coreboot@felixheld.de>2023-01-31 15:24:15 +0000
commit6c88e6ee55ff9bf0ea994c9664421c746e561a9d (patch)
tree6d511d82546a4969635dd4e0e388e6d9f0c2fc23 /src
parent15d5183e4af79624304a8379b71767cd8ee09250 (diff)
soc/intel/apl: Ensure CPU_CLUSTER linked_list bus exists
This fixes a NULL pointer deref introduced by 69cd729 (mb/*: Remove lapic from devicetree). Change-Id: I816fddfe3efe3c3aefe1b2ee28426dc1e1f3c962 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/72599 Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src')
-rw-r--r--src/soc/intel/apollolake/cpu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/soc/intel/apollolake/cpu.c b/src/soc/intel/apollolake/cpu.c
index ec262f7b35..dba1923522 100644
--- a/src/soc/intel/apollolake/cpu.c
+++ b/src/soc/intel/apollolake/cpu.c
@@ -273,6 +273,8 @@ void apollolake_init_cpus(struct device *dev)
{
if (CONFIG(SOC_INTEL_COMMON_BLOCK_CPU_MPINIT))
return;
+ if (!dev->link_list)
+ add_more_links(dev, 1);
soc_init_cpus(dev->link_list);
/* Temporarily cache the memory-mapped boot media. */