]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Pci/UhciPei/UhcPeim.c
Refine code to make it more safely.
[mirror_edk2.git] / MdeModulePkg / Bus / Pci / UhciPei / UhcPeim.c
index 33f8c45d810724583d5d4911314cbdb414652f4b..368b75d75304b817b7981eb41115b144b4567d9f 100644 (file)
@@ -2,7 +2,7 @@
 PEIM to produce gPeiUsbHostControllerPpiGuid based on gPeiUsbControllerPpiGuid\r
 which is used to enable recovery function from USB Drivers.\r
 \r
-Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved. <BR>\r
+Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved. <BR>\r
   \r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
@@ -1047,11 +1047,13 @@ CreateFrameList (
   if (Status != EFI_SUCCESS) {\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
-  \r
+  ASSERT (UhcDev->ConfigQH != NULL);\r
+\r
   Status = CreateQH(UhcDev, &UhcDev->BulkQH);\r
   if (Status != EFI_SUCCESS) {\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
+  ASSERT (UhcDev->BulkQH != NULL);\r
 \r
   //\r
   //Set the corresponding QH pointer \r