]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
efi_loader: Update startimage_exit self-test to check error
authorSimon Glass <sjg@chromium.org>
Sun, 1 Dec 2024 15:24:25 +0000 (08:24 -0700)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 5 Jan 2025 01:30:48 +0000 (02:30 +0100)
Check for an error returned from the decompress() function, just in
case.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
lib/efi_selftest/efi_selftest_startimage_exit.c

index b65a10b7a4bf7edf1eda2a7c83019175d8ecb18d..8d119f054c5f74ee79041f0e4ec5feb7315a10cc 100644 (file)
@@ -84,13 +84,15 @@ static efi_status_t decompress(u8 **image)
 static int setup(const efi_handle_t handle,
                 const struct efi_system_table *systable)
 {
+       efi_status_t ret;
+
        image_handle = handle;
        boottime = systable->boottime;
 
        /* Load the application image into memory */
-       decompress(&image);
+       ret = decompress(&image);
 
-       return EFI_ST_SUCCESS;
+       return ret;
 }
 
 /*