]> git.ipfire.org Git - thirdparty/systemd.git/commit
Reuse the parent_image handle and parent_loaded_image
authorMate Kukri <mate.kukri@canonical.com>
Thu, 7 Aug 2025 16:28:58 +0000 (17:28 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 14 Aug 2025 10:59:37 +0000 (19:59 +0900)
commit428cd7bfbad9770a0445ae5e253f23d74d7886f0
tree0f7afddd869c37fcf42c3c67857427d2770a5d83
parent1a360ed196030ced7ce66c604f1afbe61df7c02f
Reuse the parent_image handle and parent_loaded_image

- Reuse parent_image instead of allocating new ones. Firmware might cast
  EFI_LOADED_IMAGE_PROTOCOL * to a larger struct causing issues
- Remove loaded image protocol installation and uninstallation which are no
  longer required

Fixes a bug introduced by cab9c7b5a42effa8a45611fc6b8556138c869b5f.
Fixes #38567.

Co-authored-by: Tobias Heider <tobias.heider@canonical.com>
src/boot/linux.c
src/boot/proto/device-path.h