diff options
author | erictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-11-26 01:49:27 +0000 |
---|---|---|
committer | erictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-11-26 01:49:27 +0000 |
commit | 68bb5ce77e51cf35791e46f2202e36da97e5e6be (patch) | |
tree | c26ac1e69df7136fbdbee631616c515caa046443 /MdeModulePkg | |
parent | 462979afc2086ffa76ae518af5d1c466a4b55b8f (diff) | |
download | edk2-platforms-68bb5ce77e51cf35791e46f2202e36da97e5e6be.tar.xz |
EHCI Controllers with a CapLen of 0 are ignored.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11093 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c b/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c index 87e4aa079b..852a15adcb 100644 --- a/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c +++ b/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c @@ -1438,6 +1438,14 @@ EhcCreateUsb2Hc ( DEBUG ((EFI_D_INFO, "EhcCreateUsb2Hc: capability length %d\n", Ehc->CapLen));
//
+ // EHCI Controllers with a CapLen of 0 are ignored.
+ //
+ if (Ehc->CapLen == 0) {
+ gBS->FreePool (Ehc);
+ return NULL;
+ }
+
+ //
// Create AsyncRequest Polling Timer
//
Status = gBS->CreateEvent (
|