[PATCH 1/5] bootdev: Fix the case where the driver ops field is null.

Simon Glass sjg at chromium.org
Fri May 22 01:27:44 CEST 2026


On 2026-05-19T15:18:15, Tom Rini <trini at konsulko.com> wrote:
> bootdev: Fix the case where the driver ops field is null.
>
> In the case where a bootdev does not have a custom get_bootflow function
> but instead relies on default_get_bootflow to provide one,
> bootdev_get_bootflow was not handling the case where ops was simply not
> set. Restructure the function to check for "ops && ops->get_bootflow"
> and add appropriate log_debug calls for both cases.
>
> Signed-off-by: Tom Rini <trini at konsulko.com>
> Reviewed-by: Marek Vasut <marek.vasut+renesas at mailbox.org>
>
> boot/bootdev-uclass.c | 15 ++++++++++-----
>  1 file changed, 10 insertions(+), 5 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list