projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c3e44d
)
bootstd: Avoid calling unavailable block functions
author
Simon Glass
<sjg@chromium.org>
Sun, 1 Sep 2024 22:27:28 +0000
(16:27 -0600)
committer
Simon Glass
<sjg@chromium.org>
Fri, 18 Oct 2024 20:10:22 +0000
(14:10 -0600)
When BLK is not enabled but BOOTSTD is, some features of standard boot
become unavailable. Add a check for this in the only site that is
currently apparent.
Signed-off-by: Simon Glass <sjg@chromium.org>
boot/bootdev-uclass.c
patch
|
blob
|
history
diff --git
a/boot/bootdev-uclass.c
b/boot/bootdev-uclass.c
index 807f8dfb0649e8f39fc57171597c16ecf25ab0fc..64ec4fde493f4cfaa12d610beaf1ebdba644242e 100644
(file)
--- a/
boot/bootdev-uclass.c
+++ b/
boot/bootdev-uclass.c
@@
-434,6
+434,9
@@
int bootdev_find_by_label(const char *label, struct udevice **devp,
struct uclass *uc;
enum uclass_id id;
+ if (!CONFIG_IS_ENABLED(BLK))
+ return -ENOSYS;
+
ret = label_to_uclass(label, &seq, &method_flags);
if (ret < 0)
return log_msg_ret("uc", ret);