mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-28 08:04:07 +02:00
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));
|
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
|
// Create AsyncRequest Polling Timer
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user