Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
(based on FatPkg commit
b67d81497c36565dba57c7cac308b2f47668a60e)
[jordan.l.justen@intel.com: Use script to relicense to 2-clause BSD]
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Acked-by: Mark Doran <mark.doran@intel.com>
Acked-by: Laszlo Ersek <lersek@redhat.com>
-Copyright (c) 2005 - 2007, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2005 - 2012, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials are licensed and made available\r
under the terms and conditions of the BSD License which accompanies this\r
distribution. The full text of the license may be found at\r
This program and the accompanying materials are licensed and made available\r
under the terms and conditions of the BSD License which accompanies this\r
distribution. The full text of the license may be found at\r
//\r
// Allocate the Fat Cache buffer\r
//\r
//\r
// Allocate the Fat Cache buffer\r
//\r
- CacheBuffer = AllocatePool (FatCacheSize + DataCacheSize);\r
+ CacheBuffer = AllocateZeroPool (FatCacheSize + DataCacheSize);\r
if (CacheBuffer == NULL) {\r
return EFI_OUT_OF_RESOURCES;\r
}\r
if (CacheBuffer == NULL) {\r
return EFI_OUT_OF_RESOURCES;\r
}\r