Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/69752 )
Change subject: device/cpu_device.c: Zero initialize struct ......................................................................
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 --- M src/device/cpu_device.c 1 file changed, 13 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/52/69752/1
diff --git a/src/device/cpu_device.c b/src/device/cpu_device.c index 51a1994..f406e23 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 */