NetworkPkg/Ip4Dxe: fix NetLibDestroyServiceChild() call
Both NetLibDestroyServiceChild() and EFI_SERVICE_BINDING_DESTROY_CHILD take an EFI_HANDLE for the "ChildHandle" parameter, not an (EFI_HANDLE*). This patch fixes a real bug. Cc: Jiaxin Wu <jiaxin.wu@intel.com> Cc: Siyuan Fu <siyuan.fu@intel.com> Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com> Reviewed-by: Siyuan Fu <siyuan.fu@intel.com>
This commit is contained in:
parent
bf7249df9c
commit
2c9abfd5bb
|
@ -592,7 +592,7 @@ Ip4SetAddress (
|
||||||
Interface->Controller,
|
Interface->Controller,
|
||||||
Interface->Image,
|
Interface->Image,
|
||||||
&gEfiArpServiceBindingProtocolGuid,
|
&gEfiArpServiceBindingProtocolGuid,
|
||||||
&Interface->ArpHandle
|
Interface->ArpHandle
|
||||||
);
|
);
|
||||||
|
|
||||||
Interface->ArpHandle = NULL;
|
Interface->ArpHandle = NULL;
|
||||||
|
@ -657,7 +657,7 @@ ON_ERROR:
|
||||||
Interface->Controller,
|
Interface->Controller,
|
||||||
Interface->Image,
|
Interface->Image,
|
||||||
&gEfiArpServiceBindingProtocolGuid,
|
&gEfiArpServiceBindingProtocolGuid,
|
||||||
&Interface->ArpHandle
|
Interface->ArpHandle
|
||||||
);
|
);
|
||||||
|
|
||||||
return Status;
|
return Status;
|
||||||
|
|
Loading…
Reference in New Issue