]> git.baikalelectronics.ru Git - uboot.git/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)
commit276c1e2f4455bbf644a50ca68a3e8b936eefb0d8
tree4e252a649026f1f5b987579902cc4f9fc8bd466f
parent1c1e04df8e177c398fa9f364e11e8344bd791e0c
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: bd8b73b88f9 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