]> git.ipfire.org Git - thirdparty/systemd.git/commit
stub: NULL checks for DeviceHandle and FilePath
authorLukas <lu.schwager@gmail.com>
Sun, 8 Oct 2023 17:45:34 +0000 (19:45 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 16 Oct 2023 08:44:03 +0000 (10:44 +0200)
commitc7fda707163f1779ce74cba3f79f5da0d63b10dc
treed1dca2f426346ea8d2dc90e8e3d8e6af8123bbf1
parent36d87065f2f16a71d5d6bbd67aa01b26c95375b4
stub: NULL checks for DeviceHandle and FilePath

UKIs may be loaded in a way, that there can not be a device handle to
the filesystem, that contains the image, for example when using a
bootloader to load the image from a partition with a file system that is
not supported by the firmware.

With the current systemd stub, this causes a failed assertion, because
stub gets passed a NULL DeviceHandle and FilePath. Inserting two
explicit checks enables proper boot even in this case.

Fixes: #29331
src/boot/efi/stub.c