]> git.sur5r.net Git - u-boot/commit
efi_loader: avoid NULL dereference in efi_dp_match
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 8 Oct 2017 04:57:26 +0000 (06:57 +0200)
committerAlexander Graf <agraf@suse.de>
Mon, 9 Oct 2017 05:00:37 +0000 (07:00 +0200)
commit1a2c8d2f609237664fcda944c251ce693e4366f5
tree4e252a649026f1f5b987579902cc4f9fc8bd466f
parent7f8ec5b63e5a8774bfcadafbc0d9583686b00455
efi_loader: avoid NULL dereference in efi_dp_match

When calling bootefi hello twice a kernel dump occurs.

Neither bootefi hello nor bootefi selftest have an image
device patch. So do not try to dereference the NULL
value.

Fixes: 95c5553ea26 efi_loader: refactor boot device and loaded_image handling
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_loader/efi_boottime.c