diff options
Diffstat (limited to 'boot/bootmeth-uclass.c')
-rw-r--r-- | boot/bootmeth-uclass.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/boot/bootmeth-uclass.c b/boot/bootmeth-uclass.c index c040d5f92b..b8ba4eca7a 100644 --- a/boot/bootmeth-uclass.c +++ b/boot/bootmeth-uclass.c @@ -114,6 +114,8 @@ int bootmeth_setup_iter_order(struct bootflow_iter *iter) } count = upto; } + if (!count) + return log_msg_ret("count2", -ENOENT); iter->method_order = order; iter->num_methods = count; |