(C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR>\r
Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
\r
- This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution. The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php.\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+ SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
\r
}\r
\r
//\r
- // Open SNP on the child handle BY_DRIVER. It will prevent any additionally\r
+ // Open SNP on the child handle BY_DRIVER|EXCLUSIVE. It will prevent any additionally\r
// layering to perform the experiment.\r
//\r
Status = gBS->OpenProtocol (\r
(VOID **) &Snp,\r
This->DriverBindingHandle,\r
Private->Ip4Nic->Controller,\r
- EFI_OPEN_PROTOCOL_BY_DRIVER\r
+ EFI_OPEN_PROTOCOL_BY_DRIVER|EFI_OPEN_PROTOCOL_EXCLUSIVE\r
);\r
if (EFI_ERROR (Status)) {\r
goto ON_ERROR;\r
}\r
\r
//\r
- // Open SNP on the child handle BY_DRIVER. It will prevent any additionally\r
+ // Open SNP on the child handle BY_DRIVER|EXCLUSIVE. It will prevent any additionally\r
// layering to perform the experiment.\r
//\r
Status = gBS->OpenProtocol (\r
(VOID **) &Snp,\r
This->DriverBindingHandle,\r
Private->Ip6Nic->Controller,\r
- EFI_OPEN_PROTOCOL_BY_DRIVER\r
+ EFI_OPEN_PROTOCOL_BY_DRIVER|EFI_OPEN_PROTOCOL_EXCLUSIVE\r
);\r
if (EFI_ERROR (Status)) {\r
goto ON_ERROR;\r
&gPxeBcComponentName2\r
);\r
if (EFI_ERROR (Status)) {\r
- gBS->UninstallMultipleProtocolInterfaces (\r
- ImageHandle,\r
- &gEfiDriverBindingProtocolGuid,\r
- &gPxeBcIp4DriverBinding,\r
- &gEfiComponentName2ProtocolGuid,\r
- &gPxeBcComponentName2,\r
- &gEfiComponentNameProtocolGuid,\r
- &gPxeBcComponentName,\r
- NULL\r
- );\r
+ EfiLibUninstallDriverBindingComponentName2 (\r
+ &gPxeBcIp4DriverBinding,\r
+ &gPxeBcComponentName,\r
+ &gPxeBcComponentName2\r
+ );\r
}\r
\r
return Status;\r