mirror of https://github.com/acidanthera/audk.git
MdeModulePkg: Enhance error handling in NetLibGetMacAddress() of DxeNetLib.
Signed-off-by: xdu2 Reviewed-by: vanjeff git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12572 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
042a73f51b
commit
e20d6513ed
|
@ -2130,6 +2130,7 @@ NetLibGetMacAddress (
|
||||||
(VOID **) &Mnp
|
(VOID **) &Mnp
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
|
MnpSb->DestroyChild (MnpSb, MnpChildHandle);
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2138,6 +2139,7 @@ NetLibGetMacAddress (
|
||||||
//
|
//
|
||||||
Status = Mnp->GetModeData (Mnp, NULL, &SnpModeData);
|
Status = Mnp->GetModeData (Mnp, NULL, &SnpModeData);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
|
MnpSb->DestroyChild (MnpSb, MnpChildHandle);
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
SnpMode = &SnpModeData;
|
SnpMode = &SnpModeData;
|
||||||
|
|
Loading…
Reference in New Issue