]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Pci/EhciDxe/UsbHcMem.c
Update the copyright notice format
[mirror_edk2.git] / MdeModulePkg / Bus / Pci / EhciDxe / UsbHcMem.c
index 5194d540a719bae1049fdd311047b8f1303caa3a..baac29df66419b3f2ba9068edf58542dbf048558 100644 (file)
@@ -2,8 +2,8 @@
 \r
   Routine procedures for memory allocate/free.\r
 \r
-Copyright (c) 2007 - 2009, Intel Corporation\r
-All rights reserved. This program and the accompanying materials\r
+Copyright (c) 2007 - 2009, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
 http://opensource.org/licenses/bsd-license.php\r
@@ -246,6 +246,10 @@ UsbHcGetPciAddressForHostMem (
   Head      = Pool->Head;\r
   AllocSize = USBHC_MEM_ROUND (Size);\r
 \r
+  if (Mem == NULL) {\r
+    return 0;\r
+  }\r
+\r
   for (Block = Head; Block != NULL; Block = Block->Next) {\r
     //\r
     // scan the memory block list for the memory block that\r