Richard Spiegel has uploaded this change for review. ( https://review.coreboot.org/27951
Change subject: cpu/x86/mp_init.c: Fix error treatment ......................................................................
cpu/x86/mp_init.c: Fix error treatment
In procedure allocate_cpu_devices(), if structure pointer new is null skip using the the pointer. Add a "continue;" to skip using the pointer.
BUG=b:112253891 TEST=Build and boot grunt.
Change-Id: I7011fbfa0725f22a6dfbca6752e668eddac3463c Signed-off-by: Richard Spiegel richard.spiegel@silverbackltd.com --- M src/cpu/x86/mp_init.c 1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/51/27951/1
diff --git a/src/cpu/x86/mp_init.c b/src/cpu/x86/mp_init.c index d124721..ff02b16 100644 --- a/src/cpu/x86/mp_init.c +++ b/src/cpu/x86/mp_init.c @@ -404,6 +404,7 @@ if (new == NULL) { printk(BIOS_CRIT, "Could not allocate CPU device\n"); max_cpus--; + continue; } new->name = processor_name; cpus[i].dev = new;