summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Universal
diff options
context:
space:
mode:
authorJiaxin Wu <Jiaxin.wu@intel.com>2019-01-25 08:54:00 +0800
committerJiaxin Wu <Jiaxin.wu@intel.com>2019-02-12 08:25:31 +0800
commit463d994f9c43bcfc522ed5153bfbff654fba14c5 (patch)
tree11fdb036f9956e04dc3ae7efe61f6328572df5ce /MdeModulePkg/Universal
parent3103389043bd7389fd7cef3eb291a2150af8b929 (diff)
downloadedk2-463d994f9c43bcfc522ed5153bfbff654fba14c5.tar.gz
edk2-463d994f9c43bcfc522ed5153bfbff654fba14c5.tar.bz2
edk2-463d994f9c43bcfc522ed5153bfbff654fba14c5.zip
MdeModulePkg/Ip4Dxe: Uninstall protocols when error happen in Driver Binding Start.
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1447 This patch is to uninstall Ip4ServiceBindingProtocol and Ip4Config2Protocol when error happen in Driver Binding Start. Cc: Michael Turner <Michael.Turner@microsoft.com> Cc: Ye Ting <ting.ye@intel.com> Cc: Fu Siyuan <siyuan.fu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com> Signed-off-by: Michael Turner <Michael.Turner@microsoft.com> Reviewed-By: Ye Ting <ting.ye@intel.com>
Diffstat (limited to 'MdeModulePkg/Universal')
-rw-r--r--MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Driver.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Driver.c b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Driver.c
index 0f25581414..87ec968e7b 100644
--- a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Driver.c
+++ b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Driver.c
@@ -1,7 +1,7 @@
/** @file
The driver binding and service binding protocol for IP4 driver.
-Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2005 - 2019, Intel Corporation. All rights reserved.<BR>
(C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>
This program and the accompanying materials
@@ -664,10 +664,13 @@ Ip4DriverBindingStart (
return Status;
UNINSTALL_PROTOCOL:
- gBS->UninstallProtocolInterface (
+ gBS->UninstallMultipleProtocolInterfaces (
ControllerHandle,
&gEfiIp4ServiceBindingProtocolGuid,
- &IpSb->ServiceBinding
+ &IpSb->ServiceBinding,
+ &gEfiIp4Config2ProtocolGuid,
+ Ip4Cfg2,
+ NULL
);
FREE_SERVICE: