various AMD boards: fix buffer overflow

"AMD\t " isn't 8 characters long.

Change-Id: I47b2a39d7dca0201b7ee5dfd1f77e0714411257c
Found-by: Coverity Scan
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Reviewed-on: http://review.coreboot.org/6991
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-by: Jens Rottmann <JRottmann@LiPPERTembedded.de>
This commit is contained in:
Patrick Georgi 2014-09-29 20:23:29 +02:00 committed by Patrick Georgi
parent 96990a285d
commit f0bd871531
3 changed files with 3 additions and 3 deletions

View File

@ -56,7 +56,7 @@ static void *smp_write_config_table(void *v)
mc = (void *)(((char *)v) + SMP_FLOATING_TABLE_LEN);
mptable_init(mc, LOCAL_APIC_ADDR);
memcpy(mc->mpc_oem, "AMD ", 8);
memcpy(mc->mpc_oem, "AMD ", 8);
smp_write_processors(mc);

View File

@ -54,7 +54,7 @@ static void *smp_write_config_table(void *v)
mc = (void *)(((char *)v) + SMP_FLOATING_TABLE_LEN);
mptable_init(mc, LOCAL_APIC_ADDR);
memcpy(mc->mpc_oem, "AMD ", 8);
memcpy(mc->mpc_oem, "AMD ", 8);
smp_write_processors(mc);

View File

@ -54,7 +54,7 @@ static void *smp_write_config_table(void *v)
mc = (void *)(((char *)v) + SMP_FLOATING_TABLE_LEN);
mptable_init(mc, LOCAL_APIC_ADDR);
memcpy(mc->mpc_oem, "AMD ", 8);
memcpy(mc->mpc_oem, "AMD ", 8);
smp_write_processors(mc);