Revision: 16164
http://sourceforge.net/p/edk2/code/16164
Author: vanjeff
Date: 2014-09-24 06:38:47 +0000 (Wed, 24 Sep 2014)
Log Message:
-----------
Sync patch r16128 from main trunk.
MdeModulePkg/UsbBusDxe: Update Device->NumOfInterface at error handling path to
avoid system hang when DisconnectController is invoked to free resource
occupied by usb device whose interface descriptor format doesn't follow usb
spec.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <[email protected]>
Revision Links:
--------------
http://sourceforge.net/p/edk2/code/16128
Modified Paths:
--------------
branches/UDK2014.SP1/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbEnumer.c
Modified: branches/UDK2014.SP1/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbEnumer.c
===================================================================
--- branches/UDK2014.SP1/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbEnumer.c
2014-09-24 05:06:59 UTC (rev 16163)
+++ branches/UDK2014.SP1/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbEnumer.c
2014-09-24 06:38:47 UTC (rev 16164)
@@ -2,7 +2,7 @@
Usb bus enumeration support.
-Copyright (c) 2007 - 2013, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD
License
which accompanies this distribution. The full text of the license may be
found at
@@ -420,6 +420,7 @@
UsbIf = UsbCreateInterface (Device, ConfigDesc->Interfaces[Index]);
if (UsbIf == NULL) {
+ Device->NumOfInterface = Index;
return EFI_OUT_OF_RESOURCES;
}
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits