Skip to content
Commit 05b9665f authored by Quentin Schulz's avatar Quentin Schulz Committed by Tom Rini
Browse files

boot: bootflow_menu: fix crash for EFI BOOTMGR global bootmeth



The global bootmeths don't set the dev in bootflow struct which means
the dev_get_parent(bflow->dev) triggers a NULL-pointer dereference and
crash U-Boot.

So before trying to handle a bootflow, check that the associated
bootmeth isn't global, otherwise skip it.

Suggested-by: default avatarSimon Glass <sjg@chromium.org>
Signed-off-by: default avatarQuentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent 81731666
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment