1. remove duplicated NetLibDispatchDpc() calling in Pool function.

2. use mde library
3. add security check.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8860 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
vanjeff
2009-07-10 06:59:07 +00:00
parent d2eec31912
commit a4df47f109
6 changed files with 38 additions and 41 deletions

View File

@@ -253,7 +253,7 @@ Dhcp4CreateService (
ON_ERROR:
Dhcp4CloseService (DhcpSb);
gBS->FreePool (DhcpSb);
FreePool (DhcpSb);
return Status;
}
@@ -334,7 +334,7 @@ Dhcp4DriverBindingStart (
ON_ERROR:
Dhcp4CloseService (DhcpSb);
gBS->FreePool (DhcpSb);
FreePool (DhcpSb);
return Status;
}
@@ -417,7 +417,7 @@ Dhcp4DriverBindingStop (
Dhcp4CloseService (DhcpSb);
gBS->FreePool (DhcpSb);
FreePool (DhcpSb);
} else {
//
// Don't use NET_LIST_FOR_EACH_SAFE here, Dhcp4ServiceBindingDestoryChild
@@ -522,7 +522,7 @@ Dhcp4ServiceBindingCreateChild (
);
if (EFI_ERROR (Status)) {
gBS->FreePool (Instance);
FreePool (Instance);
return Status;
}
@@ -547,7 +547,7 @@ Dhcp4ServiceBindingCreateChild (
NULL
);
gBS->FreePool (Instance);
FreePool (Instance);
return Status;
}
@@ -668,6 +668,6 @@ Dhcp4ServiceBindingDestroyChild (
gBS->RestoreTPL (OldTpl);
gBS->FreePool (Instance);
FreePool (Instance);
return EFI_SUCCESS;
}