From 737dfc361211ac91b7465fccbbf5fbeff1ed5466 Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Fri, 14 Aug 2009 05:37:38 +0000 Subject: Fix a potential issue to use FreePool() with NULL pointer. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9068 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/Disk/PartitionDxe/Mbr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'MdeModulePkg/Universal/Disk/PartitionDxe') diff --git a/MdeModulePkg/Universal/Disk/PartitionDxe/Mbr.c b/MdeModulePkg/Universal/Disk/PartitionDxe/Mbr.c index 393f538428..37c12d365a 100644 --- a/MdeModulePkg/Universal/Disk/PartitionDxe/Mbr.c +++ b/MdeModulePkg/Universal/Disk/PartitionDxe/Mbr.c @@ -11,7 +11,7 @@ always on the first sector of a media. The first sector also contains the legacy boot strap code. -Copyright (c) 2006 - 2008, Intel Corporation.
+Copyright (c) 2006 - 2009, 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 @@ -136,7 +136,7 @@ PartitionInstallMbrChildHandles ( Mbr = AllocatePool (BlockIo->Media->BlockSize); if (Mbr == NULL) { - goto Done; + return Found; } Status = DiskIo->ReadDisk ( -- cgit v1.2.3