1
0
Fork 0
mirror of https://github.com/u-boot/u-boot.git synced 2025-04-24 14:25:56 +00:00
u-boot/boot
Quentin Schulz 05b9665f09 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>
2024-06-20 11:41:43 -06:00
..
android_ab.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
boot_fit.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
bootdev-uclass.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
bootflow.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
bootflow_internal.h bootstd: Support creating a boot menu 2023-01-16 18:26:50 -05:00
bootflow_menu.c boot: bootflow_menu: fix crash for EFI BOOTMGR global bootmeth 2024-06-20 11:41:43 -06:00
bootm.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
bootm_os.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
bootmeth-uclass.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
bootmeth_cros.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
bootmeth_cros.h bootstd: cros: Bring in some ChromiumOS structures 2023-08-10 18:34:54 -06:00
bootmeth_efi.c efi_loader: move distro_efi_get_fdt_name() 2024-06-10 11:43:36 +02:00
bootmeth_efi_mgr.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
bootmeth_extlinux.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
bootmeth_pxe.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
bootmeth_qfw.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
bootmeth_sandbox.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
bootmeth_script.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
bootretry.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
bootstd-uclass.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
cedit.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
common_fit.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
expo.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
expo_build.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
fdt_region.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
fdt_simplefb.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
fdt_support.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
image-android-dt.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
image-android.c android: Fix ramdisk loading for bootimage v3+ 2024-06-07 16:20:31 -06:00
image-board.c abootimg: Add init_boot image support 2024-06-07 16:20:33 -06:00
image-cipher.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
image-fdt.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
image-fit-sig.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
image-fit.c image: remove redundant hash includes 2024-05-22 08:55:28 -06:00
image-host.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
image-pre-load.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
image-sig.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
image.c image: Set load_end on partial loads 2024-06-07 16:20:28 -06:00
Kconfig boot: fix typos in help text of Kconfig configs 2024-06-20 11:41:43 -06:00
Makefile Revert "Merge patch series "pxe: Allow extlinux booting without CMDLINE enabled"" 2024-04-18 08:29:35 -06:00
prog_boot.c bootstd: Introduce programmatic boot 2023-12-13 11:51:24 -05:00
pxe_utils.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
scene.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
scene_internal.h expo: Plumb in textlines to a scene 2023-10-11 15:43:55 -04:00
scene_menu.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
scene_textline.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
vbe.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
vbe_request.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
vbe_simple.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
vbe_simple.h vbe: Move OS implementation into a separate file 2022-10-31 11:03:36 -04:00
vbe_simple_fw.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
vbe_simple_os.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00