summaryrefslogtreecommitdiff
path: root/usr/src/cmd/fmthard
diff options
context:
space:
mode:
authoryl194034 <none@none>2007-05-23 22:18:37 -0700
committeryl194034 <none@none>2007-05-23 22:18:37 -0700
commit1cce8a3fd4de339002c756b920bbddde497b9f78 (patch)
tree145628cf195ea199742d95f5b35def555dc91588 /usr/src/cmd/fmthard
parent5dbcb2a2ded752a6731e3db12a239d1380080da3 (diff)
downloadillumos-joyent-1cce8a3fd4de339002c756b920bbddde497b9f78.tar.gz
6466433 Default EFI slice table leaves one sector unused.
6474622 auto configure to a EFI labeled lun should generate a whole hog partition table 6537609 validate64 function reads past the end of efi->parts
Diffstat (limited to 'usr/src/cmd/fmthard')
-rw-r--r--usr/src/cmd/fmthard/fmthard.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/cmd/fmthard/fmthard.c b/usr/src/cmd/fmthard/fmthard.c
index 155199bed2..4d24e712dd 100644
--- a/usr/src/cmd/fmthard/fmthard.c
+++ b/usr/src/cmd/fmthard/fmthard.c
@@ -31,7 +31,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -824,7 +824,7 @@ fmthard: Partition %d specified as %lld sectors starting at %lld\n\
if (efi->efi_parts[i].p_tag != V_BACKUP &&
efi->efi_parts[i].p_size != fullsz) {
- for (j = 0; j < V_NUMPAR; j++) {
+ for (j = 0; j < efi->efi_nparts; j++) {
if (efi->efi_parts[j].p_size == fullsz)
continue;
isize = efi->efi_parts[i].p_size;