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
This commit is contained in:
erictian 2010-11-26 01:49:27 +00:00
parent 462979afc2
commit 68bb5ce77e
1 changed files with 8 additions and 0 deletions

View File

@ -1437,6 +1437,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
//