]> git.proxmox.com Git - mirror_edk2.git/commit
NetworkPkg: Update PXE driver to check for NULL pointer before use it.
authorFu Siyuan <siyuan.fu@intel.com>
Tue, 2 Jan 2018 05:25:59 +0000 (13:25 +0800)
committerFu Siyuan <siyuan.fu@intel.com>
Thu, 4 Jan 2018 01:07:48 +0000 (09:07 +0800)
commitbee14e9ebc8db1cfa5ead35834df9a9d02101bda
tree0a71d3c56878a6ac520b2a8a5822640769d33770
parent9d1c98e699af96ea5e4caf2610e18bf5e97dda3b
NetworkPkg: Update PXE driver to check for NULL pointer before use it.

This patch is to fix the issue that dereferencing of "This" (EFI_LOAD_FILE_PROTOCOL)
in EfiPxeLoadFile() is happening before the NULL check.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Sriram Subramanian <sriram-s@hpe.com>
Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c