X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FLibrary%2FUefiUsbLib%2FUsbDxeLib.c;h=b22a8294a4904b016ebd0ac6d072bb3a18cf8fbe;hb=881813d7a93d9009c873515b043c41c4554779e4;hp=c27fb03499151329dcb31357cb09bb7aa47d9e29;hpb=c255449e639a272daa90421414084d407a715289;p=mirror_edk2.git diff --git a/MdePkg/Library/UefiUsbLib/UsbDxeLib.c b/MdePkg/Library/UefiUsbLib/UsbDxeLib.c index c27fb03499..b22a8294a4 100644 --- a/MdePkg/Library/UefiUsbLib/UsbDxeLib.c +++ b/MdePkg/Library/UefiUsbLib/UsbDxeLib.c @@ -3,12 +3,12 @@ The library provides the USB Standard Device Requests defined in Usb specification 9.4 section. - Copyright (c) 2004 - 2008, Intel Corporation All rights - reserved. This program and the accompanying materials are + Copyright (c) 2004 - 2008, Intel Corporation. All rights reserved.
+ This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at - http://opensource.org/licenses/bsd-license.php + http://opensource.org/licenses/bsd-license.php. THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. @@ -177,6 +177,8 @@ UsbGetInterface ( ASSERT (AlternateSetting != NULL); ASSERT (Status != NULL); + *AlternateSetting = 0; + ZeroMem (&DevReq, sizeof (EFI_USB_DEVICE_REQUEST)); DevReq.RequestType = USB_DEV_GET_INTERFACE_REQ_TYPE; @@ -283,6 +285,8 @@ UsbGetConfiguration ( ASSERT (ConfigurationValue != NULL); ASSERT (Status != NULL); + *ConfigurationValue = 0; + ZeroMem (&DevReq, sizeof (EFI_USB_DEVICE_REQUEST)); DevReq.RequestType = USB_DEV_GET_CONFIGURATION_REQ_TYPE;