]> git.ipfire.org Git - thirdparty/grub.git/commit
loader/efi/chainloader: Simplify the loader state
authorChris Coulson <chris.coulson@canonical.com>
Tue, 5 Apr 2022 09:02:04 +0000 (10:02 +0100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 7 Jun 2022 14:39:31 +0000 (16:39 +0200)
commit1469983ebb9674753ad333d37087fb8cb20e1dce
tree32420495e11ffe69a0dd3027e6b3319f335c5e3a
parent91b38780ac8db5d517481c6c86b73d60a0c37c8b
loader/efi/chainloader: Simplify the loader state

The chainloader command retains the source buffer and device path passed
to LoadImage(), requiring the unload hook passed to grub_loader_set() to
free them. It isn't required to retain this state though - they aren't
required by StartImage() or anything else in the boot hook, so clean them
up before grub_cmd_chainloader() finishes.

Signed-off-by: Chris Coulson <chris.coulson@canonical.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/loader/efi/chainloader.c