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
..
2024-01-03 09:22:47 -05:00
2022-10-30 20:07:16 +01:00
2024-05-22 08:55:28 -06:00
2023-08-25 13:54:33 -04:00
2023-08-08 10:22:03 -04:00
2023-12-21 08:54:37 -05:00
2024-02-13 15:38:49 -05:00
2024-01-29 22:35:02 -05:00
2024-04-21 09:07:00 +02:00
2024-06-14 12:59:07 -06:00
2024-05-03 12:22:58 -06:00
2023-05-02 14:23:34 -04:00
2023-01-20 12:27:06 -05:00
2023-11-07 14:50:51 -05:00
2023-12-21 08:54:37 -05:00
2023-10-31 09:08:51 +01:00
2023-04-27 13:51:06 -04:00
2024-06-07 16:20:33 -06:00
2023-12-21 11:59:49 -05:00
2023-08-19 04:12:53 +02:00
2023-12-13 11:35:13 -05:00
2022-10-30 20:07:17 +01:00
2023-12-21 08:54:37 -05:00
2023-10-11 15:43:55 -04:00
2023-12-21 08:54:37 -05:00
2023-11-18 10:08:09 +02:00
2024-03-26 19:58:26 -04:00
2023-01-16 18:01:10 +08:00
2023-12-21 08:54:37 -05:00
2024-03-27 09:23:30 +01:00
2023-11-16 13:49:14 -05:00
2023-10-09 15:24:31 -04:00
2024-05-22 08:55:29 -06:00
2023-02-10 07:41:40 -05:00
2022-12-07 16:04:17 -05:00
2022-12-22 10:31:49 -05:00
2023-11-14 20:04:00 -07:00
2024-05-22 08:55:29 -06:00