commit | 21a6aec69dcfb3977e54f1edad28ad581dc7ff90 | [log] [tgz] |
---|---|---|
author | Quentin Schulz <quentin.schulz@cherry.de> | Wed Jun 12 16:58:49 2024 +0200 |
committer | Tom Rini <trini@konsulko.com> | Thu Jun 20 11:41:43 2024 -0600 |
tree | 94ae2f1edbdfed61d764ebb4c556158006d95a13 | |
parent | e0ff5cca67b56f5d794f819ac7c4b522edee2ca9 [diff] |
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: Simon Glass <sjg@chromium.org> Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de> Reviewed-by: Simon Glass <sjg@chromium.org>