efi: Check for failure to create objects in selftest
authorSimon Glass <sjg@chromium.org>
Mon, 26 Nov 2018 03:14:36 +0000 (20:14 -0700)
committerAlexander Graf <agraf@suse.de>
Sun, 2 Dec 2018 20:59:37 +0000 (21:59 +0100)
commit2ab7ef74cd90a6d60df6aad7dac24b6a2bb1fe85
treeeb413e971c3ca5552917cb96ec77781efdedc902
parent7b78d6438a2b3a7f58a34934b54a1a83733b8fdd
efi: Check for failure to create objects in selftest

At present a few error conditions are not checked. Before refactoring
this code, add some basic checks. Note that this code still leaks memory
in the event of error. This will be tackled after the refactor.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
cmd/bootefi.c