[prev in list] [next in list] [prev in thread] [next in thread] 

List:       grub-devel
Subject:    Re: [PATCH v2] efi: Handle NULL return value when getting loaded image protocol
From:       Daniel Kiper <dkiper () net-space ! pl>
Date:       2023-05-24 20:23:26
Message-ID: 20230524202326.qejx55iw7r5loxdh () tomti ! i ! net-space ! pl
[Download RAW message or body]

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

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic