mirror of https://github.com/acidanthera/audk.git
NetworkPkg: fix CloseProtocol & UninstallMultipleProtocolInterfaces calls
Both the "ControllerHandle" parameter of CloseProtocol() and the "Handle" parameter of UninstallMultipleProtocolInterfaces() have type EFI_HANDLE, not (EFI_HANDLE*). This patch fixes actual bugs. The issues have been dormant likely because they are on error paths. (Or, in case of TlsAuthConfigDxe, because the driver is unloaded likely very infrequently.) Cc: Jiaxin Wu <jiaxin.wu@intel.com> Cc: Siyuan Fu <siyuan.fu@intel.com> Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Siyuan Fu <siyuan.fu@intel.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
This commit is contained in:
parent
c486a33049
commit
bf7249df9c
|
@ -1145,7 +1145,7 @@ Dns4ServiceBindingCreateChild (
|
|||
DnsSb->ConnectUdp->UdpHandle,
|
||||
&gEfiUdp4ProtocolGuid,
|
||||
gDns4DriverBinding.DriverBindingHandle,
|
||||
ChildHandle
|
||||
*ChildHandle
|
||||
);
|
||||
|
||||
gBS->UninstallMultipleProtocolInterfaces (
|
||||
|
@ -1388,7 +1388,7 @@ Dns6ServiceBindingCreateChild (
|
|||
DnsSb->ConnectUdp->UdpHandle,
|
||||
&gEfiUdp6ProtocolGuid,
|
||||
gDns6DriverBinding.DriverBindingHandle,
|
||||
ChildHandle
|
||||
*ChildHandle
|
||||
);
|
||||
|
||||
gBS->UninstallMultipleProtocolInterfaces (
|
||||
|
|
|
@ -3852,7 +3852,7 @@ IScsiConfigFormInit (
|
|||
);
|
||||
if (CallbackInfo->RegisteredHandle == NULL) {
|
||||
gBS->UninstallMultipleProtocolInterfaces (
|
||||
&CallbackInfo->DriverHandle,
|
||||
CallbackInfo->DriverHandle,
|
||||
&gEfiDevicePathProtocolGuid,
|
||||
&mIScsiHiiVendorDevicePath,
|
||||
&gEfiHiiConfigAccessProtocolGuid,
|
||||
|
|
|
@ -891,7 +891,7 @@ Ip4ServiceBindingCreateChild (
|
|||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
gBS->UninstallMultipleProtocolInterfaces (
|
||||
ChildHandle,
|
||||
*ChildHandle,
|
||||
&gEfiIp4ProtocolGuid,
|
||||
&IpInstance->Ip4Proto,
|
||||
NULL
|
||||
|
|
|
@ -888,7 +888,7 @@ Ip6ServiceBindingCreateChild (
|
|||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
gBS->UninstallMultipleProtocolInterfaces (
|
||||
ChildHandle,
|
||||
*ChildHandle,
|
||||
&gEfiIp6ProtocolGuid,
|
||||
&IpInstance->Ip6Proto,
|
||||
NULL
|
||||
|
|
|
@ -592,7 +592,7 @@ Mtftp4ServiceBindingCreateChild (
|
|||
MtftpSb->ConnectUdp->UdpHandle,
|
||||
&gEfiUdp4ProtocolGuid,
|
||||
gMtftp4DriverBinding.DriverBindingHandle,
|
||||
ChildHandle
|
||||
*ChildHandle
|
||||
);
|
||||
goto ON_ERROR;
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@ TlsAuthConfigDxeUnload (
|
|||
ASSERT (PrivateData->Signature == TLS_AUTH_CONFIG_PRIVATE_DATA_SIGNATURE);
|
||||
|
||||
gBS->UninstallMultipleProtocolInterfaces (
|
||||
&ImageHandle,
|
||||
ImageHandle,
|
||||
&gEfiCallerIdGuid,
|
||||
PrivateData,
|
||||
NULL
|
||||
|
|
Loading…
Reference in New Issue