audk/MdeModulePkg/Library/UefiBootManagerLib
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
..
BmBoot.c MdeModulePkg/UefiBootManagerLib: Avoid buggy USB short-form expanding 2017-04-20 16:31:05 +08:00
BmBootDescription.c MdeModulePkg/UefiBootManagerLib: Generate boot description for NVME 2017-03-13 10:42:21 +08:00
BmConnect.c
BmConsole.c MdeModulePkg/UefiBootManagerLib: rebase to ARRAY_SIZE() 2016-10-27 11:10:56 +02:00
BmDriverHealth.c MdeModulePkg: Use IsZeroGuid API for zero GUID checking 2016-08-31 11:14:01 +08:00
BmHotkey.c MdeModulePkg: Use EfiEventEmptyFunction from UefiLib 2017-01-20 15:51:18 +08:00
BmLoadOption.c MdeModulePkg/UefiBootManagerLib: Enhance short-form expanding logic 2017-04-07 11:06:12 +08:00
BmMisc.c MdeModulePkg: Refine casting expression result to bigger size 2017-03-06 14:33:20 +08:00
BmPerformance.c MdeModulePkg BmPerf: Handle "/" separator in debug path for GCC build 2017-03-16 11:08:52 +08:00
InternalBm.h MdeModulePkg/UefiBootManagerLib: Enhance short-form expanding logic 2017-04-07 11:06:12 +08:00
UefiBootManagerLib.inf MdeModulePkg/UefiBootManagerLib: Generate boot description for NVME 2017-03-13 10:42:21 +08:00
UefiBootManagerLib.uni MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00