efi/pxe: Reuse handle
commit23b2707bd835d8a7158f9751134f427c6e743c40
authorGene Cumm <gene.cumm@gmail.com>
Fri, 26 Jun 2015 02:04:08 +0000 (25 22:04 -0400)
committerGene Cumm <gene.cumm@gmail.com>
Fri, 26 Jun 2015 02:04:08 +0000 (25 22:04 -0400)
tree35030f03f49a138541800d95b7193a8258f5712a
parent6e958ddff25c1df2a11e8c72b8b1e20bd671e3fe
efi/pxe: Reuse handle

Store and reuse handle found with EFI_LOADED_IMAGE_PROTOCOL for
EFI_PXE_BASE_CODE_PROTOCOL and EFI_UDP4_SERVICE_BINDING_PROTOCOL

This caused machines with multiple NICs to not reliably attach to the
correct NIC handle.

gnu-efi LoadedImageProtocol PxeBaseCodeProtocol Udp4ServiceBindingProtocol

Reported-By: Holger Baust <holger.baust@freenet.ag>
Reported-By: Michael Glasgow <glasgow@beer.net>
Reported-By: Da Shi Cao <dscao999@gmail.com>
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
efi/efi.h
efi/main.c
efi/pxe.c