mirror of https://github.com/acidanthera/audk.git
Update NetLibGetMacAddress() to handle the case correctly when SNP is absent.
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com> Reviewed-by: Ni, Ruiyu <ruiyu.ni@intel.com> Reviewed-by: Jin, Eric <eric.jin@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14904 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
2e7183ba91
commit
3ce454dd40
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue