summaryrefslogtreecommitdiff
path: root/Conf
diff options
context:
space:
mode:
authorRuiyu Ni <ruiyu.ni@intel.com>2017-04-19 17:16:27 +0800
committerGuo Mang <mang.guo@intel.com>2017-07-12 11:24:23 +0800
commit56403ce81ac81dffda889566d7bf29dfe9d395b1 (patch)
treeb526d03e51355f56baf52cbe4cde2052e2983bb4 /Conf
parent2eaa15457e95cf33882e6acc41058679a277a682 (diff)
downloadedk2-platforms-56403ce81ac81dffda889566d7bf29dfe9d395b1.tar.xz
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> (cherry picked from commit 21e359dccab7f3cd7b527721be042d034349417d)
Diffstat (limited to 'Conf')
0 files changed, 0 insertions, 0 deletions