On Mon, 25 Nov 2024 at 22:45, Simon Glass <s...@chromium.org> wrote: > > Check for an error returned from the decompress() function, just in > case. > > Signed-off-by: Simon Glass <s...@chromium.org> > --- > > lib/efi_selftest/efi_selftest_startimage_exit.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/lib/efi_selftest/efi_selftest_startimage_exit.c > b/lib/efi_selftest/efi_selftest_startimage_exit.c > index b65a10b7a4b..8d119f054c5 100644 > --- a/lib/efi_selftest/efi_selftest_startimage_exit.c > +++ b/lib/efi_selftest/efi_selftest_startimage_exit.c > @@ -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; > } > > /* > -- > 2.43.0 > Reviewed-by: Ilias Apalodimas <ilias.apalodi...@linaro.org>
- [PATCH 01/13] efi: Define fields in struct efi_mem_des... Simon Glass
- Re: [PATCH 01/13] efi: Define fields in struct ef... Ilias Apalodimas
- Re: [PATCH 01/13] efi: Define fields in struct ef... Heinrich Schuchardt
- [PATCH 02/13] efi_loader: Convert efi_get_memory_map()... Simon Glass
- Re: [PATCH 02/13] efi_loader: Convert efi_get_mem... Heinrich Schuchardt
- Re: [PATCH 02/13] efi_loader: Convert efi_get... Simon Glass
- Re: [PATCH 02/13] efi_loader: Convert efi... Simon Glass
- [PATCH 03/13] efi_loader: Show the resulting memory ad... Simon Glass
- Re: [PATCH 03/13] efi_loader: Show the resulting ... Heinrich Schuchardt
- [PATCH 04/13] efi_loader: Update startimage_exit self-... Simon Glass
- Re: [PATCH 04/13] efi_loader: Update startimage_e... Ilias Apalodimas
- Re: [PATCH 04/13] efi_loader: Update startima... Heinrich Schuchardt
- [PATCH 05/13] efi_loader: Move some memory-function co... Simon Glass
- Re: [PATCH 05/13] efi_loader: Move some memory-fu... Heinrich Schuchardt
- Re: [PATCH 05/13] efi_loader: Move some memor... Simon Glass
- Re: [PATCH 05/13] efi_loader: Move some m... Tom Rini
- Re: [PATCH 05/13] efi_loader: Move so... Simon Glass
- Re: [PATCH 05/13] efi_loader: Mo... Tom Rini
- Re: [PATCH 05/13] efi_loader... Heinrich Schuchardt
- Re: [PATCH 05/13] efi_loader... Tom Rini
- Re: [PATCH 05/13] efi_loader... Simon Glass