diff options
author | Ashish Singhal <ashishsingha@nvidia.com> | 2019-01-11 03:27:08 +0800 |
---|---|---|
committer | Jiaxin Wu <Jiaxin.wu@intel.com> | 2019-01-14 13:12:17 +0800 |
commit | 22b35e8bd1f9aea7bbab3a26e8ab4df339454463 (patch) | |
tree | 2cc519dbe8bc2010da25f5c75eec949f49b09d13 /NetworkPkg/DnsDxe | |
parent | 5bc96263ea2bfecb07deea81c68a6c3e226ebda1 (diff) |
NetworkPkg: Protocol Uninstallation Cleanup
Use UEFILib provided protocol uninstallation abstraction
instead of direct API for a proper cleanup.
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1444
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ashish Singhal <ashishsingha@nvidia.com>
Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com>
Diffstat (limited to 'NetworkPkg/DnsDxe')
-rw-r--r-- | NetworkPkg/DnsDxe/DnsDriver.c | 30 |
1 files changed, 10 insertions, 20 deletions
diff --git a/NetworkPkg/DnsDxe/DnsDriver.c b/NetworkPkg/DnsDxe/DnsDriver.c index 1f9b924c0b..b74f5ba18e 100644 --- a/NetworkPkg/DnsDxe/DnsDriver.c +++ b/NetworkPkg/DnsDxe/DnsDriver.c @@ -510,28 +510,18 @@ DnsDriverEntryPoint ( FreePool (mDriverData);
Error2:
- gBS->UninstallMultipleProtocolInterfaces (
- gDns6DriverBinding.DriverBindingHandle,
- &gEfiDriverBindingProtocolGuid,
- &gDns6DriverBinding,
- &gEfiComponentName2ProtocolGuid,
- &gDnsComponentName2,
- &gEfiComponentNameProtocolGuid,
- &gDnsComponentName,
- NULL
- );
+ EfiLibUninstallDriverBindingComponentName2 (
+ &gDns6DriverBinding,
+ &gDnsComponentName,
+ &gDnsComponentName2
+ );
Error1:
- gBS->UninstallMultipleProtocolInterfaces (
- ImageHandle,
- &gEfiDriverBindingProtocolGuid,
- &gDns4DriverBinding,
- &gEfiComponentName2ProtocolGuid,
- &gDnsComponentName2,
- &gEfiComponentNameProtocolGuid,
- &gDnsComponentName,
- NULL
- );
+ EfiLibUninstallDriverBindingComponentName2 (
+ &gDns4DriverBinding,
+ &gDnsComponentName,
+ &gDnsComponentName2
+ );
return Status;
}
|