]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[efi] Raise TPL during driver unload entry point
authorMichael Brown <mcb30@ipxe.org>
Mon, 22 Nov 2021 12:50:38 +0000 (12:50 +0000)
committerMichael Brown <mcb30@ipxe.org>
Mon, 22 Nov 2021 12:50:38 +0000 (12:50 +0000)
commita046da21a4c58365be6c029147799db974280048
treeaa6477a725fac7d50835a14b50f8078ad5036e6d
parent3ad27fbe78fec22e9af754242586f2ef621c8d2f
[efi] Raise TPL during driver unload entry point

The efi_unload() function is currently missing the calls to raise and
restore the TPL.  This has the side effect of causing iPXE to return
from the driver unload entry point at TPL_CALLBACK, which will cause
unexpected behaviour (typically a system lockup) shortly afterwards.

Fix by adding the missing calls to raise and restore the TPL.

Debugged-by: Petr Borsodi <petr.borsodi@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/interface/efi/efi_init.c