On Wed, 12 Jun 2024 at 08:58, Quentin Schulz <foss+ub...@0leil.net> wrote: > > From: Quentin Schulz <quentin.sch...@cherry.de> > > 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: Simon Glass <s...@chromium.org> > Signed-off-by: Quentin Schulz <quentin.sch...@cherry.de> > --- > boot/bootflow_menu.c | 7 +++++++ > include/bootflow.h | 3 ++- > 2 files changed, 9 insertions(+), 1 deletion(-)
Reviewed-by: Simon Glass <s...@chromium.org>