efi_selftest: error handling in SNP test
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 8 Oct 2017 04:57:28 +0000 (06:57 +0200)
committerAlexander Graf <agraf@suse.de>
Mon, 9 Oct 2017 05:00:38 +0000 (07:00 +0200)
commitfdd04563cedb6abbc013821c123f5d7ef3078c31
tree0c0c3e682b689f2c5cf13063fe37a49d607ad287
parent10a08c4ed70e57ac570974b04844ceec13ad311a
efi_selftest: error handling in SNP test

Avoid NULL pointer dereference after setup failed due to a
missing network.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_selftest/efi_selftest_snp.c