diff options
Diffstat (limited to 'EdkModulePkg/Universal')
-rw-r--r-- | EdkModulePkg/Universal/Disk/Partition/Dxe/Mbr.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/EdkModulePkg/Universal/Disk/Partition/Dxe/Mbr.c b/EdkModulePkg/Universal/Disk/Partition/Dxe/Mbr.c index cf790d45e3..d71698c826 100644 --- a/EdkModulePkg/Universal/Disk/Partition/Dxe/Mbr.c +++ b/EdkModulePkg/Universal/Disk/Partition/Dxe/Mbr.c @@ -162,10 +162,13 @@ Returns: BlockIo->Media->BlockSize,
Mbr
);
- if (EFI_ERROR (Status) || !PartitionValidMbr (Mbr, BlockIo->Media->LastBlock)) {
+ if (EFI_ERROR (Status)) {
Found = Status;
goto Done;
}
+ if (!PartitionValidMbr (Mbr, BlockIo->Media->LastBlock)) {
+ goto Done;
+ }
//
// We have a valid mbr - add each partition
//
|