summaryrefslogtreecommitdiffstats
path: root/src/interface/efi
diff options
context:
space:
mode:
authorMichael Brown2025-03-29 23:03:32 +0100
committerMichael Brown2025-03-29 23:03:32 +0100
commit18dbd05ed59aeb47357e51393888748d1a5e835f (patch)
tree244cd0e263316a5d4b1e7a9fdfd69bafcd8bc571 /src/interface/efi
parent[efi] Disconnect existing drivers on a per-protocol basis (diff)
downloadipxe-18dbd05ed59aeb47357e51393888748d1a5e835f.tar.gz
ipxe-18dbd05ed59aeb47357e51393888748d1a5e835f.tar.xz
ipxe-18dbd05ed59aeb47357e51393888748d1a5e835f.zip
[efi] Check correct return value from efi_pxe_find()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/interface/efi')
-rw-r--r--src/interface/efi/efi_pxe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interface/efi/efi_pxe.c b/src/interface/efi/efi_pxe.c
index 843ebb5e7..732ccdcdf 100644
--- a/src/interface/efi/efi_pxe.c
+++ b/src/interface/efi/efi_pxe.c
@@ -1679,7 +1679,7 @@ void efi_pxe_uninstall ( EFI_HANDLE handle ) {
/* Locate PXE base code */
pxe = efi_pxe_find ( handle );
- if ( ! handle ) {
+ if ( ! pxe ) {
DBG ( "PXE could not find base code for %s\n",
efi_handle_name ( handle ) );
return;