From: Fu Siyuan Date: Wed, 27 Nov 2013 08:57:11 +0000 (+0000) Subject: Update NetLibGetMacAddress() to handle the case correctly when SNP is absent. X-Git-Tag: edk2-stable201903~12053 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=3ce454dd402a4fd96b95208943b5faf34a169c44 Update NetLibGetMacAddress() to handle the case correctly when SNP is absent. Signed-off-by: Fu Siyuan Reviewed-by: Ni, Ruiyu Reviewed-by: Jin, Eric git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14904 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/MdeModulePkg/Library/DxeNetLib/DxeNetLib.c b/MdeModulePkg/Library/DxeNetLib/DxeNetLib.c index cfda3962bb..467b82280e 100644 --- a/MdeModulePkg/Library/DxeNetLib/DxeNetLib.c +++ b/MdeModulePkg/Library/DxeNetLib/DxeNetLib.c @@ -2250,7 +2250,7 @@ NetLibGetMacAddress ( // Try to get SNP mode from MNP // Status = Mnp->GetModeData (Mnp, NULL, &SnpModeData); - if (EFI_ERROR (Status)) { + if (EFI_ERROR (Status) && (Status != EFI_NOT_STARTED)) { MnpSb->DestroyChild (MnpSb, MnpChildHandle); return Status; }