From f4500fc17952c367d21d89defa9cd72b956e6637 Mon Sep 17 00:00:00 2001 From: Star Zeng Date: Mon, 24 Dec 2012 02:42:01 +0000 Subject: Zero out CacheBuffer in FatInitializeDiskCache after allocated. Signed-off-by: Star Zeng Reviewed-by: Ruiyu Ni (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 Acked-by: Mark Doran Acked-by: Laszlo Ersek --- FatPkg/EnhancedFatDxe/DiskCache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'FatPkg') diff --git a/FatPkg/EnhancedFatDxe/DiskCache.c b/FatPkg/EnhancedFatDxe/DiskCache.c index 55a7c67be5..9f527289a8 100644 --- a/FatPkg/EnhancedFatDxe/DiskCache.c +++ b/FatPkg/EnhancedFatDxe/DiskCache.c @@ -1,6 +1,6 @@ /*++ -Copyright (c) 2005 - 2007, Intel Corporation. All rights reserved.
+Copyright (c) 2005 - 2012, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -529,7 +529,7 @@ Returns: // // Allocate the Fat Cache buffer // - CacheBuffer = AllocatePool (FatCacheSize + DataCacheSize); + CacheBuffer = AllocateZeroPool (FatCacheSize + DataCacheSize); if (CacheBuffer == NULL) { return EFI_OUT_OF_RESOURCES; } -- cgit v1.2.3