From: eric_tian Date: Wed, 6 May 2009 04:26:30 +0000 (+0000) Subject: fix the wrong data length. According to spec, to get interface and configuration... X-Git-Tag: edk2-stable201903~18020 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=c255449e639a272daa90421414084d407a715289 fix the wrong data length. According to spec, to get interface and configuration descriptors, should pass 1 as data length. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8246 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/MdePkg/Library/UefiUsbLib/UsbDxeLib.c b/MdePkg/Library/UefiUsbLib/UsbDxeLib.c index a535c1f58d..c27fb03499 100644 --- a/MdePkg/Library/UefiUsbLib/UsbDxeLib.c +++ b/MdePkg/Library/UefiUsbLib/UsbDxeLib.c @@ -190,7 +190,7 @@ UsbGetInterface ( EfiUsbDataIn, PcdGet32 (PcdUsbTransferTimeoutValue), AlternateSetting, - 2, + 1, Status ); } @@ -295,7 +295,7 @@ UsbGetConfiguration ( EfiUsbDataIn, PcdGet32 (PcdUsbTransferTimeoutValue), ConfigurationValue, - 2, + 1, Status ); }