Changeset 80721 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/DnsDxe/DnsDriver.c
- Timestamp:
- Sep 11, 2019 8:46:37 AM (5 years ago)
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/FirmwareNew
-
Property svn:mergeinfo
changed from (toggle deleted branches)
to (toggle deleted branches)/vendor/edk2/current 103735-103757,103769-103776,129194-129237 /vendor/edk2/current 103735-103757,103769-103776,129194-133213
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/DnsDxe/DnsDriver.c
r77662 r80721 2 2 The driver binding and service binding protocol for DnsDxe driver. 3 3 4 Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.<BR> 5 This program and the accompanying materials 6 are licensed and made available under the terms and conditions of the BSD License 7 which accompanies this distribution. The full text of the license may be found at 8 http://opensource.org/licenses/bsd-license.php 9 10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 4 Copyright (c) 2015 - 2019, Intel Corporation. All rights reserved.<BR> 5 SPDX-License-Identifier: BSD-2-Clause-Patent 12 6 13 7 **/ … … 377 371 while (!IsListEmpty (&mDriverData->Dns4CacheList)) { 378 372 Entry = NetListRemoveHead (&mDriverData->Dns4CacheList); 373 ASSERT (Entry != NULL); 379 374 ItemCache4 = NET_LIST_USER_STRUCT (Entry, DNS4_CACHE, AllCacheLink); 380 if (ItemCache4->DnsCache.HostName != NULL) { 381 FreePool (ItemCache4->DnsCache.HostName); 382 } 383 if (ItemCache4->DnsCache.IpAddress != NULL) { 384 FreePool (ItemCache4->DnsCache.IpAddress); 385 } 375 FreePool (ItemCache4->DnsCache.HostName); 376 FreePool (ItemCache4->DnsCache.IpAddress); 386 377 FreePool (ItemCache4); 387 378 } … … 389 380 while (!IsListEmpty (&mDriverData->Dns4ServerList)) { 390 381 Entry = NetListRemoveHead (&mDriverData->Dns4ServerList); 382 ASSERT (Entry != NULL); 391 383 ItemServerIp4 = NET_LIST_USER_STRUCT (Entry, DNS4_SERVER_IP, AllServerLink); 392 384 FreePool (ItemServerIp4); … … 395 387 while (!IsListEmpty (&mDriverData->Dns6CacheList)) { 396 388 Entry = NetListRemoveHead (&mDriverData->Dns6CacheList); 389 ASSERT (Entry != NULL); 397 390 ItemCache6 = NET_LIST_USER_STRUCT (Entry, DNS6_CACHE, AllCacheLink); 398 if (ItemCache6->DnsCache.HostName != NULL) { 399 FreePool (ItemCache6->DnsCache.HostName); 400 } 401 if (ItemCache6->DnsCache.IpAddress != NULL) { 402 FreePool (ItemCache6->DnsCache.IpAddress); 403 } 391 FreePool (ItemCache6->DnsCache.HostName); 392 FreePool (ItemCache6->DnsCache.IpAddress); 404 393 FreePool (ItemCache6); 405 394 } … … 407 396 while (!IsListEmpty (&mDriverData->Dns6ServerList)) { 408 397 Entry = NetListRemoveHead (&mDriverData->Dns6ServerList); 398 ASSERT (Entry != NULL); 409 399 ItemServerIp6 = NET_LIST_USER_STRUCT (Entry, DNS6_SERVER_IP, AllServerLink); 410 400 FreePool (ItemServerIp6); … … 511 501 512 502 Error2: 513 gBS->UninstallMultipleProtocolInterfaces ( 514 gDns6DriverBinding.DriverBindingHandle, 515 &gEfiDriverBindingProtocolGuid, 516 &gDns6DriverBinding, 517 &gEfiComponentName2ProtocolGuid, 518 &gDnsComponentName2, 519 &gEfiComponentNameProtocolGuid, 520 &gDnsComponentName, 521 NULL 522 ); 503 EfiLibUninstallDriverBindingComponentName2 ( 504 &gDns6DriverBinding, 505 &gDnsComponentName, 506 &gDnsComponentName2 507 ); 523 508 524 509 Error1: 525 gBS->UninstallMultipleProtocolInterfaces ( 526 ImageHandle, 527 &gEfiDriverBindingProtocolGuid, 528 &gDns4DriverBinding, 529 &gEfiComponentName2ProtocolGuid, 530 &gDnsComponentName2, 531 &gEfiComponentNameProtocolGuid, 532 &gDnsComponentName, 533 NULL 534 ); 510 EfiLibUninstallDriverBindingComponentName2 ( 511 &gDns4DriverBinding, 512 &gDnsComponentName, 513 &gDnsComponentName2 514 ); 535 515 536 516 return Status;
Note:
See TracChangeset
for help on using the changeset viewer.