efi_loader: Fix efi_install_configuration_table
authorAlexander Graf <agraf@suse.de>
Thu, 18 Aug 2016 23:23:30 +0000 (01:23 +0200)
committerAlexander Graf <agraf@suse.de>
Wed, 19 Oct 2016 07:01:52 +0000 (09:01 +0200)
commitaba5e9194b98988162e5bd026dbcb6627a53efe5
treee3680dfb93276f1d5711e9cf4098f93a965ad943
parente663b350f1699312281ddd1439dda6b5fc86598d
efi_loader: Fix efi_install_configuration_table

So far we were only installing the FDT table and didn't have space
to store any other. Hence nobody realized that our efi table allocation
was broken in that it didn't set the indicator for the number of tables
plus one.

This patch fixes it, allowing code to allocate new efi tables.

Signed-off-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
lib/efi_loader/efi_boottime.c