audk/MdeModulePkg/Bus
Evgeny Yakovlev f89f1dbe52 MdeModulePkg/UsbBusDxe: Fixed USB descriptor length check
According to spec if the length of a descriptor is smaller than
what the specification defines, then the host shall ignore it.
However if the size is greater than expected the host will ignore
the extra bytes and start looking for the next descriptor
at the end of actual length returned. Original check did not
handle the latter case correctly and only allowed descriptors
with lengths exactly as defined in specification.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Evgeny Yakovlev <insoreiges@gmail.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
2016-06-29 10:37:22 +08:00
..
Ata MdedulePkg: AtaAtapiPassThru: Remove polling on PxCMD.FR flag setting 2016-06-22 16:23:58 +08:00
I2c/I2cDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
Isa MdeModulePkg/Ps2MouseDxe: Use a different FILE_GUID 2016-04-13 14:54:45 +08:00
Pci MdeModulePkg: SdMmc: Add delay before eMMC reset 2016-06-24 11:28:35 +08:00
Scsi MdeModulePkg ScsiDiskDxe: Add Erase Block Protocol support for UFS devices 2016-05-20 13:42:51 +08:00
Sd MdeModulePkg: SdMmc: Fix parameters order in EmmcSwitch functions call 2016-06-24 11:26:53 +08:00
Ufs MdeModulePkg: UfsPassThruDxe: remove set but unused variables 2016-03-25 10:52:26 +01:00
Usb MdeModulePkg/UsbBusDxe: Fixed USB descriptor length check 2016-06-29 10:37:22 +08:00