[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2] efi: Handle NULL return value when getting loaded image p
From: |
Daniel Kiper |
Subject: |
Re: [PATCH v2] efi: Handle NULL return value when getting loaded image protocol |
Date: |
Wed, 24 May 2023 22:23:26 +0200 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
On Wed, May 24, 2023 at 07:29:09PM +0200, Ard Biesheuvel wrote:
> The EFI spec mandates that the handle produced by the LoadImage boot
> service has a LoadedImage protocol instance installed on it, but for
> robustness, we should still deal with a NULL return value from the
> helper routine that obtains this protocol pointer.
>
> If this happens, don't try to start the image but unload it and return
> an error.
>
> Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Daniel