VirtualBox

Ignore:
Timestamp:
Sep 11, 2019 8:46:37 AM (5 years ago)
Author:
vboxsync
Message:

Devices/EFI/FirmwareNew: Start upgrade process to edk2-stable201908 (compiles on Windows and works to some extent), bugref:4643

Location:
trunk/src/VBox/Devices/EFI/FirmwareNew
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/FirmwareNew

  • trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/DnsDxe/DnsDriver.c

    r77662 r80721  
    22The driver binding and service binding protocol for DnsDxe driver.
    33
    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.
     4Copyright (c) 2015 - 2019, Intel Corporation. All rights reserved.<BR>
     5SPDX-License-Identifier: BSD-2-Clause-Patent
    126
    137**/
     
    377371    while (!IsListEmpty (&mDriverData->Dns4CacheList)) {
    378372      Entry = NetListRemoveHead (&mDriverData->Dns4CacheList);
     373      ASSERT (Entry != NULL);
    379374      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);
    386377      FreePool (ItemCache4);
    387378    }
     
    389380    while (!IsListEmpty (&mDriverData->Dns4ServerList)) {
    390381      Entry = NetListRemoveHead (&mDriverData->Dns4ServerList);
     382      ASSERT (Entry != NULL);
    391383      ItemServerIp4 = NET_LIST_USER_STRUCT (Entry, DNS4_SERVER_IP, AllServerLink);
    392384      FreePool (ItemServerIp4);
     
    395387    while (!IsListEmpty (&mDriverData->Dns6CacheList)) {
    396388      Entry = NetListRemoveHead (&mDriverData->Dns6CacheList);
     389      ASSERT (Entry != NULL);
    397390      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);
    404393      FreePool (ItemCache6);
    405394    }
     
    407396    while (!IsListEmpty (&mDriverData->Dns6ServerList)) {
    408397      Entry = NetListRemoveHead (&mDriverData->Dns6ServerList);
     398      ASSERT (Entry != NULL);
    409399      ItemServerIp6 = NET_LIST_USER_STRUCT (Entry, DNS6_SERVER_IP, AllServerLink);
    410400      FreePool (ItemServerIp6);
     
    511501
    512502  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       );
    523508
    524509  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      );
    535515
    536516  return Status;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette