efi_loader: Move the fallback code from efi_run_image()
authorSimon Glass <sjg@chromium.org>
Thu, 23 Jan 2025 22:07:22 +0000 (15:07 -0700)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 26 Jan 2025 10:06:57 +0000 (11:06 +0100)
commit5f67c8800e8ea56ab161a7b643f54190556e70bc
tree9956e889e5953d18d4564eabf21873aebda62ce6
parentb9f42821af4dfc0988c39cb4d0ae28118da2c312
efi_loader: Move the fallback code from efi_run_image()

This code is only needed if an invalid image/device path is passed in.
Move the code out to a caller where this can be dealt with. The normal
flow will provide these parameters.

Signed-off-by: Simon Glass <sjg@chromium.org>
lib/efi_loader/efi_bootbin.c