From: Ian Campbell Date: Tue, 14 Jun 2011 14:22:09 +0000 (+0100) Subject: Correct fseg allocation for SMBIOS tables. X-Git-Tag: rel-1.6.3~84 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=ee2bc468cbc741abe191a70dc8393083aa7ab9c0;p=seabios.git Correct fseg allocation for SMBIOS tables. Anthony Perard noticed that grub was unhappy because it sees no low memory and that his e820 table was missing the first entry. He then pointed out this rather glaring error in the allocation of space for the SMBIOS tables. I've no idea why I didn't see this failure. Signed-off-by: Ian Campbell Tested-by: Anthony Perard --- diff --git a/src/biostables.c b/src/biostables.c index 761b260..d8b5067 100644 --- a/src/biostables.c +++ b/src/biostables.c @@ -95,7 +95,7 @@ copy_smbios(void *pos) return; if (checksum(pos+0x10, p->length-0x10) != 0) return; - struct smbios_entry_point *newpos = malloc_fseg(sizeof(p->length)); + struct smbios_entry_point *newpos = malloc_fseg(p->length); if (!newpos) { warn_noalloc(); return;