summaryrefslogtreecommitdiff
path: root/FatPkg
diff options
context:
space:
mode:
authorniruiyu <niruiyu@efd2e655-3735-4b16-a529-16bfa2dd702b>2012-12-24 02:42:01 +0000
committerniruiyu <niruiyu@efd2e655-3735-4b16-a529-16bfa2dd702b>2012-12-24 02:42:01 +0000
commite910f3f06b802326db1cdf608c83c9504afbf3ff (patch)
tree76f755a5f4916ca39c56ae35ddde46e381b060e1 /FatPkg
parent62e9ccd69497586b3c31d0d456b5e3b0b6c1990e (diff)
Zero out CacheBuffer in FatInitializeDiskCache after allocated.
Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com> git-svn-id: https://edk2-fatdriver2.svn.sourceforge.net/svnroot/edk2-fatdriver2/trunk@72 efd2e655-3735-4b16-a529-16bfa2dd702b
Diffstat (limited to 'FatPkg')
-rw-r--r--FatPkg/EnhancedFatDxe/DiskCache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/FatPkg/EnhancedFatDxe/DiskCache.c b/FatPkg/EnhancedFatDxe/DiskCache.c
index d738e5ce29..7dbd5d1f5d 100644
--- a/FatPkg/EnhancedFatDxe/DiskCache.c
+++ b/FatPkg/EnhancedFatDxe/DiskCache.c
@@ -1,6 +1,6 @@
/*++
-Copyright (c) 2005 - 2007, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2005 - 2012, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the Software
License Agreement which accompanies this distribution.
@@ -525,7 +525,7 @@ Returns:
//
// Allocate the Fat Cache buffer
//
- CacheBuffer = AllocatePool (FatCacheSize + DataCacheSize);
+ CacheBuffer = AllocateZeroPool (FatCacheSize + DataCacheSize);
if (CacheBuffer == NULL) {
return EFI_OUT_OF_RESOURCES;
}