mirror of https://github.com/acidanthera/audk.git
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:
parent
462979afc2
commit
68bb5ce77e
|
@ -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
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue