From c255449e639a272daa90421414084d407a715289 Mon Sep 17 00:00:00 2001 From: eric_tian Date: Wed, 6 May 2009 04:26:30 +0000 Subject: [PATCH] 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 --- MdePkg/Library/UefiUsbLib/UsbDxeLib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); } -- 2.39.2