aboutsummaryrefslogtreecommitdiff
path: root/src/device/cpu_device.c
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2022-11-17 20:36:40 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-12-14 13:52:00 +0000
commit4f2b5a5dbd40d6b1561c872a8883b124a8e24008 (patch)
treedc4d9755d30fa22eb3d19ff87efffc02c50378b4 /src/device/cpu_device.c
parentdb65dd60fb11e3d38dbdd9a2e2f64d6ea7ef7576 (diff)
device/cpu_device.c: Zero initialize struct
Don't rely on this being 0. Change-Id: I7c0d16b6a265bf9c7abcfdf2f18a43706ee03ea1 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/69752 Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Diffstat (limited to 'src/device/cpu_device.c')
-rw-r--r--src/device/cpu_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device/cpu_device.c b/src/device/cpu_device.c
index 51a1994a8a..f406e23f89 100644
--- a/src/device/cpu_device.c
+++ b/src/device/cpu_device.c
@@ -7,7 +7,7 @@
struct device *add_cpu_device(struct bus *cpu_bus, unsigned int apic_id,
int enabled)
{
- struct device_path cpu_path;
+ struct device_path cpu_path = {};
struct device *cpu;
/* Build the CPU device path */