This patch fixes an 'write_tables: coreboot table didn't fit (f0221)' issue.
authorJosef Kellermann <Joseph.Kellermann@heitec.de>
Mon, 24 Jan 2011 21:07:57 +0000 (21:07 +0000)
committerStefan Reinauer <stepan@openbios.org>
Mon, 24 Jan 2011 21:07:57 +0000 (21:07 +0000)
Signed-off-by: Josef Kellermann <Joseph.Kellermann@heitec.de>
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6295 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

src/arch/x86/boot/coreboot_table.c

index d883d2d6afb2a36aa83f0a1394a60ad79eaca867..49cdb29356fa91efe1fd9f2e9f98f93b002ae807 100644 (file)
@@ -547,7 +547,7 @@ unsigned long write_coreboot_table(
                if (option_table) {
                        struct lb_record *rec_dest = lb_new_record(head);
                        /* Copy the option config table, it's already a lb_record... */
-                       memcpy(rec_dest,  &option_table, option_table->size);
+                       memcpy(rec_dest,  option_table, option_table->size);
                        /* Create cmos checksum entry in coreboot table */
                        lb_cmos_checksum(head);
                } else {