]> git.ipfire.org Git - thirdparty/u-boot.git/commit
bootdev: Fix the case where the driver ops field is null.
authorTom Rini <trini@konsulko.com>
Mon, 18 May 2026 22:32:05 +0000 (16:32 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 19 May 2026 13:53:50 +0000 (07:53 -0600)
commit15cc283d1ba4f0821bf96dd709cc805513746da7
tree879a807e70cc9b3e6ed58a66c99fb886743fb05d
parent21a3b9f03b05467ec7422399a92a43f89dd2b526
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@konsulko.com>
boot/bootdev-uclass.c