]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[efi] Process veto objects in reverse order of enumeration
authorMichael Brown <mcb30@ipxe.org>
Fri, 23 Jun 2023 15:27:47 +0000 (16:27 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 23 Jun 2023 15:51:10 +0000 (16:51 +0100)
commitae435cb4cc78183814f867686d278885db2988f8
treeef699580e616ee7e5657750ea9583a6ad2f85457
parentf8a0d1c0b8cfd7b04bdc9a006c52434661afd06a
[efi] Process veto objects in reverse order of enumeration

While not guaranteed by the UEFI specification, the enumeration of
handles, protocols, and openers will generally return results in order
of creation.  Processing these objects in reverse order (as is already
done when calling DisconnectController() on the list of all handles)
will generally therefore perform the forcible uninstallation
operations in reverse order of object creation, which minimises the
number of implicit operations performed (e.g. when disconnecting a
controller that itself still has existent child controllers).

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/interface/efi/efi_veto.c