audk/MdeModulePkg
Ruiyu Ni 21e359dcca MdeModulePkg/UefiBootManagerLib: Avoid buggy USB short-form expanding
When a load option points to a physical UsbIo controller, whose
device path contains UsbClass or UsbWwid node, old logic
unconditionally treats it as a short-form device path and expands
it. But the expanding gets the exactly same device path, and the
device path is passed to BmGetNextLoadOptionDevicePath() which
then passes this device path to BmExpandUsbDevicePath() again.
This causes a infinite recursion.

The patch avoids the USB short-form expanding when the device path
points to a physical UsbIo controller.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Feng Tian <feng.tian@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Michael Turner <Michael.Turner@microsoft.com>
2017-04-20 16:31:05 +08:00
..
Application MdeModulePkg/BootManagerMenu: Add assertion to indicate no DIV by 0 2017-04-14 18:28:50 +08:00
Bus MdeModulePkg/Ufs: Wait fDeviceInit be cleared by devices during init 2017-04-20 13:09:51 +08:00
Core MdeModulePkg PiSmmCore: Enhance SMM FreePool to catch buffer overflow 2017-04-20 14:10:04 +08:00
Include MdeModulePkg/CpuExceptionHandlerLib: Add DumpCpuContext() 2017-04-07 09:43:40 +08:00
Library MdeModulePkg/UefiBootManagerLib: Avoid buggy USB short-form expanding 2017-04-20 16:31:05 +08:00
Logo MdeModulePkg/LogoDxe: Add missing dependency gEfiHiiImageExProtocolGuid 2017-03-17 12:25:14 +08:00
Universal MdeModulePkg/TerminalDxe: Avoid always append device path to *Dev 2017-04-20 10:24:10 +08:00
Contributions.txt
License.txt
MdeModulePkg.dec MdeModulePkg: move PlatformHasAcpiGuid from EmbeddedPkg 2017-04-05 16:59:13 +01:00
MdeModulePkg.dsc MdeModulePkg: Add Brotli algorithm decompression library 2017-03-29 12:14:41 +08:00
MdeModulePkg.uni MdeModulePkg: Add PROMPT&HELP string of pcd to UNI file 2017-03-07 21:47:19 +08:00
MdeModulePkgExtra.uni MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00