From 3ce454dd402a4fd96b95208943b5faf34a169c44 Mon Sep 17 00:00:00 2001 From: Fu Siyuan Date: Wed, 27 Nov 2013 08:57:11 +0000 Subject: [PATCH] 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 --- MdeModulePkg/Library/DxeNetLib/DxeNetLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.2