Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 21e359dccab7f3cd7b527721be042d034349417d
      
https://github.com/tianocore/edk2/commit/21e359dccab7f3cd7b527721be042d034349417d
  Author: Ruiyu Ni <ruiyu...@intel.com>
  Date:   2017-04-20 (Thu, 20 Apr 2017)

  Changed paths:
    M MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c

  Log Message:
  -----------
  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...@intel.com>
Cc: Feng Tian <feng.t...@intel.com>
Reviewed-by: Jeff Fan <jeff....@intel.com>
Cc: Eric Dong <eric.d...@intel.com>
Cc: Michael Turner <michael.tur...@microsoft.com>


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to