git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11093
6f19259b-4bc3-4df7-8a09-
765794883524
\r
DEBUG ((EFI_D_INFO, "EhcCreateUsb2Hc: capability length %d\n", Ehc->CapLen));\r
\r
\r
DEBUG ((EFI_D_INFO, "EhcCreateUsb2Hc: capability length %d\n", Ehc->CapLen));\r
\r
+ //\r
+ // EHCI Controllers with a CapLen of 0 are ignored.\r
+ //\r
+ if (Ehc->CapLen == 0) {\r
+ gBS->FreePool (Ehc);\r
+ return NULL;\r
+ }\r
+\r
//\r
// Create AsyncRequest Polling Timer\r
//\r
//\r
// Create AsyncRequest Polling Timer\r
//\r