summaryrefslogtreecommitdiffstats
path: root/NetworkPkg
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2019-09-07 14:25:43 +0200
committerLaszlo Ersek <lersek@redhat.com>2019-10-09 09:40:10 +0200
commit2c9abfd5bb49cdfc53d3482f250cc0972d45251c (patch)
treec7884a9cbe4f4d1e300f43aae0cf5b75751a8f77 /NetworkPkg
parentbf7249df9cbd0b5096f8f737b2439b6d17be89c3 (diff)
downloadedk2-2c9abfd5bb49cdfc53d3482f250cc0972d45251c.tar.gz
edk2-2c9abfd5bb49cdfc53d3482f250cc0972d45251c.tar.bz2
edk2-2c9abfd5bb49cdfc53d3482f250cc0972d45251c.zip
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>
Diffstat (limited to 'NetworkPkg')
-rw-r--r--NetworkPkg/Ip4Dxe/Ip4If.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/NetworkPkg/Ip4Dxe/Ip4If.c b/NetworkPkg/Ip4Dxe/Ip4If.c
index 44b8d9fc8f..53a333037f 100644
--- a/NetworkPkg/Ip4Dxe/Ip4If.c
+++ b/NetworkPkg/Ip4Dxe/Ip4If.c
@@ -592,7 +592,7 @@ Ip4SetAddress (
Interface->Controller,
Interface->Image,
&gEfiArpServiceBindingProtocolGuid,
- &Interface->ArpHandle
+ Interface->ArpHandle
);
Interface->ArpHandle = NULL;
@@ -657,7 +657,7 @@ ON_ERROR:
Interface->Controller,
Interface->Image,
&gEfiArpServiceBindingProtocolGuid,
- &Interface->ArpHandle
+ Interface->ArpHandle
);
return Status;